Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPA - Exclude LM error #276

Closed
jakublaznovsky opened this issue Aug 31, 2023 · 3 comments
Closed

GPA - Exclude LM error #276

jakublaznovsky opened this issue Aug 31, 2023 · 3 comments

Comments

@jakublaznovsky
Copy link

Hello Guys,
I encountered an error in the Slicer 5.4.0 version, respectively in the recent GPA module.
It is not possible to run GPA, when I want to exclude some LMs. See the error below - probably related to the updated numpy library

Traceback (most recent call last):
File "C:/Users/admin/AppData/Local/slicer.org/Slicer 5.4.0/slicer.org/Extensions-31938/SlicerMorph/lib/Slicer-5.4/qt-scripted-modules/GPA.py", line 1220, in onLoad
self.LMExclusionList=[np.int(x) for x in self.LMExclusionList]
File "C:/Users/admin/AppData/Local/slicer.org/Slicer 5.4.0/slicer.org/Extensions-31938/SlicerMorph/lib/Slicer-5.4/qt-scripted-modules/GPA.py", line 1220, in
self.LMExclusionList=[np.int(x) for x in self.LMExclusionList]
File "C:\Users\admin\AppData\Local\slicer.org\Slicer 5.4.0\lib\Python\Lib\site-packages\numpy_init_.py", line 313, in getattr
raise AttributeError(former_attrs[attr])
AttributeError: module 'numpy' has no attribute 'int'.
np.int was a deprecated alias for the builtin int. To avoid this error in existing code, use int by itself. Doing this will not modify any behavior and is safe. When replacing np.int, you may wish to use e.g. np.int64 or np.int32 to specify the precision. If you wish to review your current use, check the release note link for additional information.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations

Thank you for all the effort!

@muratmaga
Copy link
Collaborator

Looks like a numpy change that broke it. Thanks for reporting it.

@smeolfe

@muratmaga
Copy link
Collaborator

@smrolfe

smrolfe added a commit that referenced this issue Sep 28, 2023
Issue documented in: #276
@smrolfe
Copy link
Collaborator

smrolfe commented Sep 28, 2023

Fixed in e5deb1d

@smrolfe smrolfe closed this as completed Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants