Skip to content

Commit d81fb7f

Browse files
authored
Merge pull request #2904 from h-mayorquin/eliminate_unused_argument
Remove unused argument in nwb extractors `read_file_from_backend`
2 parents d18cec2 + eb88017 commit d81fb7f

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/spikeinterface/extractors/nwbextractors.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ def read_file_from_backend(
1818
cache: bool = False,
1919
stream_cache_path: str | Path | None = None,
2020
storage_options: dict | None = None,
21-
backend: Literal["hdf5", "zarr"] | None = None,
2221
):
2322
"""
2423
Reads a file from a hdf5 or zarr backend.
@@ -680,7 +679,6 @@ def _fetch_recording_segment_info_pynwb(self, file, cache, load_time_vector, sam
680679

681680
def _fetch_recording_segment_info_backend(self, file, cache, load_time_vector, samples_for_rate_estimation):
682681
open_file = read_file_from_backend(
683-
backend=self.backend,
684682
file_path=self.file_path,
685683
file=file,
686684
stream_mode=self.stream_mode,
@@ -1132,7 +1130,6 @@ def _fetch_sorting_segment_info_backend(
11321130
self, unit_table_path: str = None, samples_for_rate_estimation: int = 1000, cache: bool = False
11331131
):
11341132
open_file = read_file_from_backend(
1135-
backend=self.backend,
11361133
file_path=self.file_path,
11371134
stream_mode=self.stream_mode,
11381135
cache=cache,

0 commit comments

Comments
 (0)