Skip to content

Replace numpy tostring/fromstring in lioness.py #378

@ladislav-hovan

Description

@ladislav-hovan

Hello,

I've noticed when trying to run LIONESS in a new environment, that when using a new version of numpy (2.3+), the code failed because it couldn't find the np.ndarray.tostring() function. This function has been deprecated for a while as it had a behaviour identical to that of np.ndarray.tobytes(), and since version 2.3 it was completely removed. I suppose the fix should be as easy as replacing fromstring/tostring instances with frombytes/tobytes, but I haven't tested this yet (I downgraded numpy for now). I would be happy to draft a pull request if you want me to!

Best regards,
Ladislav

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