penn-cnt / RNS_processing_toolbox

This repository contains code for processing and analyzing data from the responsive neurostimulation (RNS) device by NeuroPace.
3 stars 7 forks source link

EventStartIdx and EventEndIdx ordering issue (HUP137) #24

Open b-schd opened 3 years ago

b-schd commented 3 years ago

EventStartIdx and EventEndIdx appear incorrect (startIDX occurs before end Idx in deidentifeied ecog_catalog.csv file).

No order issues appear in original data, .dat file appears to be normal (not empty).

b-schd commented 7 months ago

This was a bug that occurred when a .dat file was empty (which occasionally occurs). This meant that the start index was one behind the end index....

IMPORTANT NOTE: If RNS data is re-pulled going forward, the event indices will be shifted compared to what was previously there.... Other idea is that I should have saved the original even indices?