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.
coverage: 81.315% (+0.007%) from 81.308%
when pulling 20b20b1ff66b3d670386f626c2e6f8bbcda3e0c4 on fix-new-image-like
into f0ffa49137db4129d65368e818bd16285ebee41e on master.
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 functionfrom_numpy_like
that fit in better with the api given thefrom_numpy
function... except the args are switched.