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
629 stars 161 forks source link

ENH: check for transform instance before writing to file #636

Closed ncullen93 closed 4 months ago

ncullen93 commented 4 months ago

Very small pr that checks that the object passed into write_transform is actually an antstransform instance and provides a more informative error message.

coveralls commented 4 months ago

Coverage Status

coverage: 80.914% (+0.007%) from 80.907% when pulling 98da26f4fabee7e4468856e743f7d45c46710427 on test-write-transform into ee0db0f55c773a3e8d8688e96e9fed43b2246761 on master.