You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Indeed, this is a reminder of the fact that IRTK is not as ready as we like for consumption as a public library. These exit(1) calls should disappear in favour of proper exception management such as the commits you pointed out. That being said, there are other calls to exit(1) elsewhere and I would welcome a PR that addresses all.
exit(1)
does not leave any chance to catch exceptions. It also kills interactive Python sessions.The current code in IRTK looks like this:
https://github.com/BioMedIA/IRTK/blob/master/Modules/Image/src/irtkFileNIFTIToImage.cc#L173
on the other hand the code in IRTK-LEGACY looks like this:
https://github.com/BioMedIA/IRTK/blob/master/Modules/Image/src/irtkFileNIFTIToImage.cc#L173
Are you happy with
exit(1)
? Do you agree with the syntax and formating in IRTK-LEGACY or would rather have a different way of throwing exceptions?Note that
irtkException
s are still there: https://github.com/BioMedIA/IRTK/blob/master/Modules/Common/include/irtkException.hThe text was updated successfully, but these errors were encountered: