Skip to content

Specify numpy versions (incompatible with numpy 2.0) #19

Description

@Rafael-Silva-Oliveira

Hey, I'm trying to use this tool, but the environment file is not very specific on what numpy version to use and so it installs numpy 2.0 as default; However, there are pieces of code that have been since deprecated in numpy 2.0. Thins like np.array(..., copy=False) which are now np.asarray(...)

https://numpy.org/devdocs/numpy_2_0_migration_guide.html#adapting-to-changes-in-the-copy-keyword

    a = np.asarray(a, dtype=np.float64)
ValueError: Unable to avoid copy while creating an array as requested.
If using `np.array(obj, copy=False)` replace it with `np.asarray(obj)` to allow a copy when needed (no behavior change in NumPy 1.x).
For more details, see https://numpy.org/devdocs/numpy_2_0_migration_guide.html#adapting-to-changes-in-the-copy-keyword.

Might be worth adding the package versions to the environment file

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions