Skip to content

Commit

Permalink
Merge pull request #2904 from h-mayorquin/eliminate_unused_argument
Browse files Browse the repository at this point in the history
Remove unused argument in nwb extractors `read_file_from_backend`
  • Loading branch information
alejoe91 authored May 24, 2024
2 parents d18cec2 + eb88017 commit d81fb7f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/spikeinterface/extractors/nwbextractors.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ def read_file_from_backend(
cache: bool = False,
stream_cache_path: str | Path | None = None,
storage_options: dict | None = None,
backend: Literal["hdf5", "zarr"] | None = None,
):
"""
Reads a file from a hdf5 or zarr backend.
Expand Down Expand Up @@ -680,7 +679,6 @@ def _fetch_recording_segment_info_pynwb(self, file, cache, load_time_vector, sam

def _fetch_recording_segment_info_backend(self, file, cache, load_time_vector, samples_for_rate_estimation):
open_file = read_file_from_backend(
backend=self.backend,
file_path=self.file_path,
file=file,
stream_mode=self.stream_mode,
Expand Down Expand Up @@ -1132,7 +1130,6 @@ def _fetch_sorting_segment_info_backend(
self, unit_table_path: str = None, samples_for_rate_estimation: int = 1000, cache: bool = False
):
open_file = read_file_from_backend(
backend=self.backend,
file_path=self.file_path,
stream_mode=self.stream_mode,
cache=cache,
Expand Down

0 comments on commit d81fb7f

Please sign in to comment.