Skip to content

Commit

Permalink
Bump
Browse files Browse the repository at this point in the history
  • Loading branch information
bjhardcastle committed Mar 20, 2024
1 parent bb7372c commit 1555e7d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencies = [
"npc-io>=0.1.26",
"npc-session>=0.1.33",
]
version = "0.1.7"
version = "0.1.8"
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 3",
Expand Down
9 changes: 4 additions & 5 deletions src/npc_sync/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from __future__ import annotations

import datetime
import io
import logging
from collections.abc import Iterable, Sequence
from typing import TYPE_CHECKING, Any, Literal, Union
Expand Down Expand Up @@ -276,19 +275,19 @@ def load(self, path) -> h5py.File:
path.open(mode="rb", **ffspec_storage_options), "r"
)
return self.dfile

@property
def meta_data(self) -> dict[str, Any]:
return eval(self.dfile["meta"][()])

@property
def line_labels(self) -> Sequence[str]:
return self.meta_data["line_labels"]

@property
def times(self) -> npt.NDArray[np.int64]:
return self._process_times()

def get_line_for_stim_onset(
self, waveform_type: Literal["sound", "audio", "opto"]
) -> int:
Expand Down

0 comments on commit 1555e7d

Please sign in to comment.