Skip to content

AttributeError: 'numpy.ndarray' object has no attribute '_peaks' #9

Done

Description

@pizts
Image

Activity

  1. tornikeo commented on Dec 5, 2025

    @tornikeo
    Collaborator

    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?

  2. added a commit that references this issue on Dec 2, 2026
  3. tornikeo commented on Dec 2, 2026

    @tornikeo
    Collaborator

    Fixed in v1.0.0 (#12)!

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions