File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -551,7 +551,7 @@ def make(self, key):
551551 'spike_times' : unit_spike_times ,
552552 'spike_count' : spike_count ,
553553 'spike_sites' : spike_sites [kilosort_dataset .data ['spike_clusters' ] == unit ],
554- 'spike_depths' : spike_depths [kilosort_dataset .data ['spike_clusters' ] == unit ] if spike_depths . any () else None })
554+ 'spike_depths' : spike_depths [kilosort_dataset .data ['spike_clusters' ] == unit ] if spike_depths is not None else None })
555555
556556 self .insert1 (key )
557557 self .Unit .insert ([{** key , ** u } for u in units ])
Original file line number Diff line number Diff line change @@ -550,7 +550,7 @@ def make(self, key):
550550 'spike_times' : unit_spike_times ,
551551 'spike_count' : spike_count ,
552552 'spike_sites' : spike_sites [kilosort_dataset .data ['spike_clusters' ] == unit ],
553- 'spike_depths' : spike_depths [kilosort_dataset .data ['spike_clusters' ] == unit ] if spike_depths . any () else None })
553+ 'spike_depths' : spike_depths [kilosort_dataset .data ['spike_clusters' ] == unit ] if spike_depths is not None else None })
554554
555555 self .insert1 (key )
556556 self .Unit .insert ([{** key , ** u } for u in units ])
Original file line number Diff line number Diff line change @@ -685,7 +685,7 @@ def make(self, key):
685685 'spike_times' : unit_spike_times ,
686686 'spike_count' : spike_count ,
687687 'spike_sites' : spike_sites [kilosort_dataset .data ['spike_clusters' ] == unit ],
688- 'spike_depths' : spike_depths [kilosort_dataset .data ['spike_clusters' ] == unit ] if spike_depths . any () else None })
688+ 'spike_depths' : spike_depths [kilosort_dataset .data ['spike_clusters' ] == unit ] if spike_depths is not None else None })
689689
690690 self .insert1 (key )
691691 self .Unit .insert ([{** key , ** u } for u in units ])
You can’t perform that action at this time.
0 commit comments