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

Can not quit python after generating image file using ants.write_image #495

Closed NemesisAmos closed 5 months ago

NemesisAmos commented 1 year ago

Hi everyone,

I have got a problem after I generate image file using ants.write_image. I have wrote an script for brain nifti image coregistration. The code work perfectly on windows 11 operating system, but can not work on windows 7 system. On windows 7 system I can obtain the generated image file, but I can't quit python normally after excuting the script. I've tried os._exit(0), os.exit(), quit() and os.system('exit()'), but non of them works. I tried to fix the problem. I tried to excute matplotlib plot on windows 7 system and it works after specifying plt.ion(). It seems that the version anaconda3 2018.10 win64 can not deal with io release after generating coregistered nifti image. I was wondering if anyone have similar problem and already solved it.

Best, Amos

ncullen93 commented 5 months ago

Please re-submit your issue with a reproducible example, thanks!