ANTsX / ANTsPy

A fast medical imaging analysis library in Python with algorithms for registration, segmentation, and more.
https://antspyx.readthedocs.io
Apache License 2.0
586 stars 161 forks source link

FIX: new_image_like arg typo #650

Closed ncullen93 closed 1 month ago

ncullen93 commented 1 month ago

The new_image_like function had a typo where the argument was name "self" because it was originally attached to the ants image class. Now it is an @image_method function. This PR fixes that and also adds a semi-alias function from_numpy_like that fit in better with the api given the from_numpy function... except the args are switched.

coveralls commented 1 month ago

Coverage Status

coverage: 81.315% (+0.007%) from 81.308% when pulling 20b20b1ff66b3d670386f626c2e6f8bbcda3e0c4 on fix-new-image-like into f0ffa49137db4129d65368e818bd16285ebee41e on master.