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
I've been using ANTsPy in a toolkit I've developed for our lab. In the last version, the ANTsImage class no longer gets imported to the top level of the packages (i.e. I can't use the reference ants.ANTsImage anymore). Is there a reason for this change? I used the type a lot for type hints within the package. Will it now be stable for the future as well? I don't mind updating my toolkit but the change was not documented in any of the commit messages I saw for the update from 0.5.2 to 0.5.3. When importing the class directly from ants.core.ants_image.py I also get a warning that I'm accessing protected members, as the class is not declared in all of the file.
Kind Regards
The text was updated successfully, but these errors were encountered:
Thank you very much for the quick reply! I think if it's added the all array of the ants_image.py file it should work fine again if that's in line with how you want to structure the package.
All except the top-level init file now avoid the "from X import *" pattern (#373). I agree though it should go back into __all__ in case others do the import that way. I will also add it to core/__init__.py
Hello,
I've been using ANTsPy in a toolkit I've developed for our lab. In the last version, the ANTsImage class no longer gets imported to the top level of the packages (i.e. I can't use the reference ants.ANTsImage anymore). Is there a reason for this change? I used the type a lot for type hints within the package. Will it now be stable for the future as well? I don't mind updating my toolkit but the change was not documented in any of the commit messages I saw for the update from 0.5.2 to 0.5.3. When importing the class directly from ants.core.ants_image.py I also get a warning that I'm accessing protected members, as the class is not declared in all of the file.
Kind Regards
The text was updated successfully, but these errors were encountered: