Skip to content

Commit

Permalink
Merge pull request #2828 from alejoe91/fix-zarr-times
Browse files Browse the repository at this point in the history
Zarr: extract time vector once and for all!
  • Loading branch information
alejoe91 authored May 10, 2024
2 parents 551a3b4 + 37a01d3 commit cd55f91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/spikeinterface/core/zarrextractors.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def __init__(self, folder_path: Path | str, storage_options: dict | None = None)
time_kwargs = {}
time_vector = self._root.get(f"times_seg{segment_index}", None)
if time_vector is not None:
time_kwargs["time_vector"] = time_vector
time_kwargs["time_vector"] = time_vector[:]
else:
if t_starts is None:
t_start = None
Expand Down
2 changes: 1 addition & 1 deletion src/spikeinterface/generation/template_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import zarr


def fetch_templates_from_database(dataset="test_templates") -> Templates:
def fetch_templates_from_database(dataset="test_templates.zarr") -> Templates:

s3_path = f"s3://spikeinterface-template-database/{dataset}/"
zarr_group = zarr.open_consolidated(s3_path, storage_options={"anon": True})
Expand Down

0 comments on commit cd55f91

Please sign in to comment.