Skip to content

Commit 02540f4

Browse files
authored
Merge branch 'main' into add-RemoveBadChannel-class
2 parents 56da71c + dfbc584 commit 02540f4

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/spikeinterface/benchmark/benchmark_base.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,6 @@ def create(cls, study_folder, datasets={}, cases={}, levels=None):
134134
else:
135135
analyzer = data
136136

137-
rec, gt_sorting = analyzer.recording, analyzer.sorting
138-
139137
analyzers_path[key] = str(analyzer.folder.resolve())
140138

141139
# recordings are pickled
@@ -180,7 +178,11 @@ def scan_folder(self):
180178
self.analyzers[key] = analyzer
181179
# the sorting is in memory here we take the saved one because comparisons need to pickle it later
182180
sorting = load(analyzer.folder / "sorting")
183-
self.datasets[key] = analyzer.recording, sorting
181+
if analyzer.has_recording():
182+
recording = analyzer.recording
183+
else:
184+
recording = None
185+
self.datasets[key] = recording, sorting
184186

185187
with open(self.folder / "cases.pickle", "rb") as f:
186188
self.cases = pickle.load(f)

src/spikeinterface/extractors/neoextractors/maxwell.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class MaxwellRecordingExtractor(NeoBaseRecordingExtractor):
3636
rec_name : str, default: None
3737
When the file contains several recordings you need to specify the one
3838
you want to extract. (rec_name='rec0000').
39-
install_maxwell_plugin : bool, default: False
39+
install_maxwell_plugin : bool, default: True
4040
If True, install the maxwell plugin for neo.
4141
block_index : int, default: None
4242
If there are several blocks (experiments), specify the block index you want to load
@@ -52,7 +52,7 @@ def __init__(
5252
block_index=None,
5353
all_annotations=False,
5454
rec_name=None,
55-
install_maxwell_plugin=False,
55+
install_maxwell_plugin=True,
5656
use_names_as_ids: bool = False,
5757
):
5858
if install_maxwell_plugin:

0 commit comments

Comments
 (0)