Skip to content

Commit f6a4699

Browse files
committed
Merge branch 'snapshot_readability' of github.com:Hendrik-code/TPTBox into snapshot_readability
2 parents ea5c24b + e842407 commit f6a4699

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

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
)

0 commit comments

Comments
 (0)