Skip to content

Commit

Permalink
Merge pull request #571 from ANTsX/chain-decrop-image
Browse files Browse the repository at this point in the history
allow decrop_image to be chained
  • Loading branch information
Nick Cullen authored Mar 15, 2024
2 parents ff7413a + c1f5406 commit 63ec454
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ants/core/ants_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ def __repr__(self):
for k, v in utils.__dict__.items():
if callable(v):
args = inspect.getfullargspec(getattr(utils,k)).args
if (len(args) > 0) and (args[0] in {'img','image'}):
if (len(args) > 0) and (args[0] in {'img','image','cropped_image'}):
setattr(ANTsImage, k, partialmethod(v))

for k, v in registration.__dict__.items():
Expand Down

0 comments on commit 63ec454

Please sign in to comment.