From a0bd8743a6e9c6f6f9ae942ad0818e11006b9d1f Mon Sep 17 00:00:00 2001 From: sarthakpati Date: Thu, 4 Apr 2024 15:56:26 -0400 Subject: [PATCH] call `resample_function` from tests --- unit_tests/test_full.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/unit_tests/test_full.py b/unit_tests/test_full.py index a11b1a2..b107077 100644 --- a/unit_tests/test_full.py +++ b/unit_tests/test_full.py @@ -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 @@ -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]: