You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Blackrock files may have events out of temporal order creating spurious segments #1181
It's technically possible to get events with timestamps that are newer than a subsequent event. The file_spec_3_0 file I submitted has this issue. It only seems to happen with cbPKTTYPE_PREVREP packets, and these are packets that are not even handled by python-neo.
I will check with Blackrock to see if there's a reason these packets are being saved in the nev file; maybe they can be removed.
Even if they can be removed, should we change how python-neo identifies segment boundaries so that unhandled packet types are ignored in segment identification?
# Only consider handled events.mask_any=np.any(np.vstack([value[nev_data_masks[key]] forkey, valueinmasks.items()]), axis=0)
jump_ids=np.where(
raw_event_data['timestamp'][mask_any][1:] <raw_event_data['timestamp'][mask_any][:-1]
)[0] +1jump_ids=np.where(mask_any)[0][jump_ids] # Get back in original indices.
I can add this to the FileSpec 3.0 PR but I think it can be applied to spec 2.3 just as well.
Hi @cboulay Thanks for digging into this. Did you get any response from BlackRock regarding these events? If these are not revelant for the actual recording data then we can ignore them in neo.
Activity
samuelgarcia commentedon Oct 10, 2022
Hi Chadwick,
tanks for caching this.
Go for this, the patch is OK
JuliaSprenger commentedon Oct 17, 2022
Hi @cboulay Thanks for digging into this. Did you get any response from BlackRock regarding these events? If these are not revelant for the actual recording data then we can ignore them in neo.