Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
robert committed Aug 29, 2024
1 parent 65c2249 commit f1d98a6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions unit_tests/test_semantic.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __init__(
acquisition="sag",
log_name="DummySegModel",
modeltype="unet",
model_expected_orientation=["P", "I", "R"],
model_expected_orientation=("P", "I", "R"),
available_folds=1,
inference_augmentation=False,
resolution_range=[0.75, 0.75, 1.65],
Expand Down Expand Up @@ -65,10 +65,7 @@ def test_phase_preprocess(self):
preprossed_input, errcode = preprocess_input(mri, debug_data={}, pad_size=pad_size, verbose=True)
print(mri)
print(preprossed_input)

# backchanged_origin = tuple(preprossed_input.origin[idx] + origin_diff[idx] for idx in range(3))
self.assertTrue(preprossed_input.assert_affine(origin=mri.origin, error_tolerance=origin_diff))
# affine=mri.affine,
self.assertTrue(preprossed_input.assert_affine(origin=mri.origin, origin_tolerance=origin_diff))
self.assertTrue(preprossed_input.assert_affine(rotation=mri.rotation, orientation=mri.orientation, zoom=mri.zoom))
self.assertEqual(errcode, ErrCode.OK)
for idx, s in enumerate(mri.shape):
Expand Down

0 comments on commit f1d98a6

Please sign in to comment.