Closed christianbrodbeck closed 11 months ago
Pinging this – as Python 3.10 becomes more common more users will run into this
MNE-Python no longer uses PySurfer and I don't have the bandwidth to maintain this package. Maybe I could add you as a maintainer @christianbrodbeck ?
Sure!
Done!
Any chance these commits will be merged soon?
Edit to say that file viz.py needs a correction:
line 1460: dtype=np.int
-> dtype=int
as per
AttributeError: module 'numpy' has no attribute 'int'.
np.int
was a deprecated alias for the builtinint
. To avoid this error in existing code, useint
by itself. Doing this will not modify any behavior and is safe. When replacingnp.int
, you may wish to use e.g.np.int64
ornp.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
same issue with utils.py which has 5 occurrences of np.int
.
@Timothy-Anders0n I added that, too, thanks for pointing it out
@larsoner okay to merge this without another review? And how would we go about making a minor release?
Yes you can maintain in whatever way you see fit. Personally I would try to fix CIs then rely on green but that could be a lot of work.
I probably have PyPI credentials to add you so you could upload a sdist and wheel. Let me know your PyPI username if it's different from GitHub
I think I found you on PyPI, invitation sent
This is needed to get PySurfer to import in an environment with Python 3.10 and nibabel 5.1.