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...
Currently,
prepare_analytic_hamiltonian.pyuses a kwargnewshapein the functionnp.savetxtto save relevant files. However, this kwarg has been replaced byshape, 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
newshapewithshape. Now I suppose this will only work numpy 2.4+. Which might require an if statement to check for the version of numpy...