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
The text was updated successfully, but these errors were encountered:
xuanma
changed the title
The index for reading spike waveforms from a data package is not right
The index for reading spike waveforms from data packets is not right
Jul 6, 2021
I think right code is this: wfs = np.ndarray((nPackets,int((self.basic_header['BytesInDataPackets']-(tsBytes+4))/2)), '<h', rawdata, tsBytes+4, (self.basic_header['BytesInDataPackets'], 2))
https://github.com/BlackrockMicrosystems/Python-Utilities/blob/2b93f0d10ff8fd9dcb627e3eb579ca88e5f39b87/brpylib.py#L501
With the original codes one may lose 2 temporal samples for each spike waveform. It seems that the right codes should be
wfs = np.ndarray((nPackets,int((self.basic_header['BytesInDataPackets']-(tsBytes+6))/2)), '<h', rawdata, tsBytes+6, (self.basic_header['BytesInDataPackets'], 2))
The text was updated successfully, but these errors were encountered: