diff --git a/pyproject.toml b/pyproject.toml index d8f1c616..1c385f2c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,7 +19,7 @@ classifiers = [ "Programming Language :: Python :: 3.9" ] dependencies = [ - "numpy>=1.19.5", + "numpy>=1.19.2", "attrs>=21.2.0", "h5py>=3.1.0", "pynwb", diff --git a/sleap_io/__init__.py b/sleap_io/__init__.py index 2cecc38a..53ba9ca5 100644 --- a/sleap_io/__init__.py +++ b/sleap_io/__init__.py @@ -2,7 +2,7 @@ # Define package version. # This is read dynamically by setuptools in pyproject.toml to determine the release version. -__version__ = "0.0.9" +__version__ = "0.0.10" from sleap_io.model.skeleton import Node, Edge, Skeleton, Symmetry from sleap_io.model.video import Video diff --git a/sleap_io/io/nwb.py b/sleap_io/io/nwb.py index c018da5c..6618eb74 100644 --- a/sleap_io/io/nwb.py +++ b/sleap_io/io/nwb.py @@ -8,7 +8,11 @@ import pandas as pd # type: ignore[import] import numpy as np -from numpy.typing import ArrayLike + +try: + from numpy.typing import ArrayLike +except ImportError: + ArrayLike = np.ndarray from pynwb import NWBFile, NWBHDF5IO, ProcessingModule # type: ignore[import] from ndx_pose import PoseEstimationSeries, PoseEstimation # type: ignore[import]