An open-source Python package for efficient accession and visualization of Bruker TimsTOF raw data from the Mann Labs at the Max Planck Institute of Biochemistry.
Describe the bug
Hey all, i am starting to explore TIMS data and already knew about this tool and had finally some time to try it out. During Indexing the spectra (in MGF conversion) i got the following error:
AttributeError: module 'numpy' has no attribute 'int'
To Reproduce
To reproduce just execute the following alphatims export mgf (with numpy >=1.24.0)
Expected behavior
No error and i get an MGF (for testing)
Logs
Just for completeness, here the full error:
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
Version (please complete the following information):
I tried this with a new environment and just executed pip install alphatims
Describe the bug Hey all, i am starting to explore TIMS data and already knew about this tool and had finally some time to try it out. During Indexing the spectra (in MGF conversion) i got the following error:
To Reproduce
alphatims export mgf
(with numpy >=1.24.0)Expected behavior No error and i get an MGF (for testing)
Logs Just for completeness, here the full error:
Version (please complete the following information): I tried this with a new environment and just executed
pip install alphatims
Additional context Also in issue #25 this was mentioned!
To fix this issue, it is enough to run
pip install numpy==1.23.5
(the version before they remove int as dtype).It would be great if you could update the requirements.txt and include it there. Alternatively you could also update this line to
np.int64
.