airlab-unibas / airlab

Image registration laboratory for 2D and 3D image data
Apache License 2.0
408 stars 92 forks source link

Registration doesn't accept verbose as a parameter, must set _verbose manually #7

Closed bsugerman closed 5 years ago

bsugerman commented 5 years ago

When I create a new registration instance, the parameter "verbose" is rejected because it doesn't show up in the class definition. Example:

registration = al.PairwiseRegistration(dtype=fixed_image.dtype,
                                       device=fixed_image.device, verbose=True)

yields

TypeError: __init__() got an unexpected keyword argument 'verbose'

However, I can manually set it after defining the instance with

registration._verbose=verbose

Figured you would want to know about this.

RobinSandkuehler commented 5 years ago

Hi, Thank you very much for the report. It should be fixed now.