forked from AllenInstitute/ipfx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GH AllenInstitute#508 - Remove np.nan values from np.diff array
np.nan values were not being dropped from the end of the np.diff array before calling np.flatnonzero to remove non-zero values in get_stim_epoch. This was causing get_stim_epoch to incorrectly identify the end of the stimulus epoch as the same as the end of the sweep epoch, which was also causing the end of the experiment epoch to be incorrect as well since it relys on the stimulus epoch. By dropping the np.nan values from the end of the difference array (di) in get_stim_epoch, the correct indices for end of the stimulus epoch as well as for the experiment epoch are now being returned. This should fix the issue with sweeps being incorrectly tagged with 'Recording stopped before completing the experiment epoch'.
- Loading branch information
Showing
3 changed files
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters