Skip to content

Commit

Permalink
call resample_function from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sarthakpati committed Apr 4, 2024
1 parent 46fd927 commit a0bd874
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion unit_tests/test_full.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import yaml

from ereg.cli.run import main
from ereg.functional import registration_function
from ereg.functional import registration_function, resample_function
from ereg.registration import RegistrationClass
from ereg.utils.io import read_image_and_cast_to_32bit_float

Expand Down Expand Up @@ -101,6 +101,15 @@ def test_registration_function():
log_file=log_file,
)
_image_sanity_check(atlas_sri, output_image)
resample_function(
target_image=atlas_sri,
moving_image=moving_image,
output_image=output_image,
transform_file=transform_file,
configuration=test_config,
log_file=log_file,
)
_image_sanity_check(atlas_sri, output_image)
assert os.path.exists(transform_file), "Transform file not created."
assert os.path.exists(log_file), "Log file not created."
for file_to_delete in [output_image, transform_file, log_file]:
Expand Down

0 comments on commit a0bd874

Please sign in to comment.