Skip to content

Commit 6b50d2c

Browse files
authored
Merge pull request #93 from Hendrik-code/snapshot_readability
Snapshot readability
2 parents b67d12b + f6a4699 commit 6b50d2c

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/tests_mr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
os: [ubuntu-latest]
17-
python-version: ["3.9","3.12"]
17+
python-version: ["3.9","3.10","3.12"]
1818

1919
steps:
2020
- uses: actions/checkout@v4

TPTBox/core/poi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ def resample_from_to(self, ref: Has_Grid):
575575
return self.to_global().to_other(ref)
576576

577577
def resample_from_to_(self, ref: Has_Grid):
578-
return self._set_inplace(self.resample_from_to_(ref))
578+
return self._set_inplace(self.resample_from_to(ref))
579579

580580
def save(
581581
self,

TPTBox/core/poi_fun/save_mkr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ def _save_mrk(
410410
"@schema": "https://raw.githubusercontent.com/slicer/slicer/master/Modules/Loadable/Markups/Resources/Schema/markups-schema-v1.0.3.json#",
411411
"markups": markups,
412412
}
413-
print(markups[-1].get("display"))
413+
# print(markups[-1].get("display"))
414414
filepath.unlink(missing_ok=True)
415415
with open(filepath, "w") as f:
416416
json.dump(mrk_data, f, indent=2)

TPTBox/registration/deepali/deepali_trainer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ def _run_level(
659659

660660
def on_split_losses(self):
661661
misc_excl = set()
662-
self.loss_terms = {a: l.to(self.device) for a, l in self.loss_terms.items()}
662+
# self.loss_terms = {a: l.to(self.device) for a, l in self.loss_terms.items()}
663663
from TPTBox.registration.ridged_intensity.affine_deepali import ( # noqa: PLC0415
664664
PairwiseSegImageLoss,
665665
)

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ readme = "README.md"
1212
packages = [{ include = "TPTBox" }]
1313

1414
[tool.poetry.dependencies]
15-
python = "^3.9 || ^3.10 || ^3.11 || ^3.12"
15+
python = "^3.9 || ^3.10 || ^3.11 || ^3.12 || ^3.13 || ^3.14"
1616
pathlib = "*"
1717
nibabel = "^5.2.0"
1818
numpy = "^1.26.3"
@@ -38,7 +38,7 @@ pre-commit = "*"
3838
pyvista = "^0.43.2"
3939
coverage = ">=7.0.1"
4040
pytest-mock = "^3.6.0"
41-
41+
exceptiongroup = { version = "^1.2", python = "<3.11" }
4242

4343

4444
[build-system]

0 commit comments

Comments
 (0)