Skip to content

Deprecated kwarg newshape #30

Description

@imaad-ansari

Currently, prepare_analytic_hamiltonian.py uses a kwarg newshape in the function np.savetxt to save relevant files. However, this kwarg has been replaced by shape, as of numpy 2.4:
https://numpy.org/doc/stable/release/2.4.0-notes.html
numpy/numpy#29994

The fix is as simple as replacing newshape with shape. Now I suppose this will only work numpy 2.4+. Which might require an if statement to check for the version of numpy...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions