I get the following warning when loading certain Neuropixels recording sessions (e.g. session 715093703 in the Visual Coding dataset).
allensdk/brain_observatory/ecephys/ecephys_session.py:1093: UserWarning: Session includes invalid time intervals that could be accessed with the attribute ‘invalid_times’, Spikes within these intervals are invalid and may need to be excluded from the analysis.
I assume this is normal and expected, but is there a longer explanation / tutorial on how I should be filtering out these invalid_times? I see that
session.invalid_times gives me some information about these invalid times… Does
session.presentationwise_spike_counts(...) exclude these or return nan? I am just looking to understand the default settings a bit better. Are there any relevant helper functions in the SDK that can help me filter out these intervals appropriately?