diff --git a/brainles_preprocessing/registration/ANTs/ANTs.py b/brainles_preprocessing/registration/ANTs/ANTs.py index fa0808e..3c55738 100644 --- a/brainles_preprocessing/registration/ANTs/ANTs.py +++ b/brainles_preprocessing/registration/ANTs/ANTs.py @@ -169,15 +169,16 @@ def transform( """ start_time = datetime.datetime.now() + # TODO - self.transformation_params + # we update the transformation parameters with the provided kwargs + transform_kwargs = {**self.transformation_params, **kwargs} + interpolator = transform_kwargs.pop('interpolator', interpolator) + assert interpolator in VALID_INTERPOLATORS, ( f"Invalid interpolator: {interpolator}. " f"Valid options are: {', '.join(VALID_INTERPOLATORS)}." ) - # TODO - self.transformation_params - # we update the transformation parameters with the provided kwargs - transform_kwargs = {**self.transformation_params, **kwargs} - # Convert all paths to Path objects fixed_image_path = Path(fixed_image_path) moving_image_path = Path(moving_image_path)