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
{{ message }}
Repository navigation
AttributeError: 'numpy.ndarray' object has no attribute '_peaks' #9
Thanks for pointing out the error exactly! 😄 I have to check if the _peaks attribute has been removed in recent MatchMS versions, and how to replace it. Can you replicate this with a google colab notebook? If not, which matchms version are you using?
Fix: Removed all direct private s._peaks accesses across SimMS, consolidated input packing through the public s.peaks API (and direct matchms.SpectraCollection CSR arrays), added explicit input validation that reports the offending side and index on invalid numeric arrays, and added PeakArrays for array-native inputs.
Activity
tornikeo commentedon Dec 5, 2025
Thanks for pointing out the error exactly! 😄 I have to check if the
_peaksattribute has been removed in recent MatchMS versions, and how to replace it. Can you replicate this with a google colab notebook? If not, which matchms version are you using?Merge pull request #12 from PangeAI/revive/v1.0.0
tornikeo commentedon Dec 2, 2026
Fixed in v1.0.0 (#12)!
Fix: Removed all direct private
s._peaksaccesses across SimMS, consolidated input packing through the publics.peaksAPI (and directmatchms.SpectraCollectionCSR arrays), added explicit input validation that reports the offending side and index on invalid numeric arrays, and addedPeakArraysfor array-native inputs.