Skip to content

Commit

Permalink
Remove nptyping optional dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
danjjl committed Dec 11, 2024
1 parent 133d3b2 commit 9bfe6ae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "timescoring"
version = "0.0.5"
version = "0.0.6"
authors = [
{ name="Jonathan Dan", email="[email protected]" },
{ name="Una Pale", email="[email protected]" },
Expand All @@ -14,11 +14,10 @@ description = "Library for measuring performance of time series classification"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"numpy>=1.24.3 ",
"nptyping>=2.5.0"
"numpy>=1.24.3",
]

[project.optional-dependencies]
[optional-dependencies]
plotting = [
"matplotlib>=3.7.1",
]
Expand Down
4 changes: 2 additions & 2 deletions src/timescoring/annotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from typing import List, Tuple

import numpy as np
from nptyping import Bool, NDArray, Shape
from numpy.typing import NDArray


@dataclass(frozen=True)
Expand All @@ -20,7 +20,7 @@ class Annotation:
are immutable to guarantee consistency between both data types.
"""
events: List[Tuple[int, int]]
mask: NDArray[Shape["Size"], Bool]
mask: NDArray[np.bool_]
fs: int

def __init__(self, data, fs: int, numSamples: int = None):
Expand Down

0 comments on commit 9bfe6ae

Please sign in to comment.