Skip to content

Commit f1a728a

Browse files
author
eduardotogpi
committed
Added exclusionMethod and exclusionCriteria to saved archive
1 parent f90d16b commit f1a728a

File tree

4 files changed

+13
-6
lines changed

4 files changed

+13
-6
lines changed

pyproject.toml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["hatchling"]
2+
requires = ["hatchling", "hatch-vcs"]
33
build-backend = "hatchling.build"
44

55
[project]
@@ -42,4 +42,9 @@ include = [
4242

4343

4444
[tool.hatch.version]
45-
path = "src/pyCRT/__about__.py"
45+
source = "vcs"
46+
47+
48+
[tool.hatch.version.raw-options]
49+
version_scheme = "no-guess-dev"
50+
local_scheme = "no-local-version"

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ opencv-python
22
matplotlib
33
scipy
44
pandas
5+
tomli

src/pyCRT/simpleUI.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@
4343

4444
Real = Union[float, int, np.float64, int]
4545

46-
# This accounts for the fact that int doesn't inherit from int
47-
Integer = Union[int, int]
48-
4946
FigAxTuple = tuple[Figure, Axes]
5047

5148
# Standard ROI tuple used by OpenCV
@@ -214,6 +211,9 @@ def __init__(
214211
exclusionCriteria,
215212
)
216213

214+
self.exclusionMethod: str = exclusionMethod
215+
self.exclusionCriteria: float = exclusionCriteria
216+
217217
# }}}
218218

219219
@classmethod
@@ -456,6 +456,8 @@ def save(self, filePath: str) -> None:
456456
polyTuple=np.array(self.polyTuple),
457457
pCRTTuple=np.array(self.pCRTTuple),
458458
criticalTime=self.criticalTime,
459+
exclusionMethod=self.exclusionMethod,
460+
exclusionCriteria=self.exclusionCriteria,
459461
)
460462

461463
# }}}

tests/test_simpleUI.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,4 +258,3 @@ def testPlaybackFPS(self):
258258

259259

260260
# }}}
261-

0 commit comments

Comments
 (0)