Skip to content

Change occurrences of np.float_ to np.float64 as it has been removed in numpy>2.0.0#288

Open
denizberkin wants to merge 2 commits intochrislit:masterfrom
denizberkin:master
Open

Change occurrences of np.float_ to np.float64 as it has been removed in numpy>2.0.0#288
denizberkin wants to merge 2 commits intochrislit:masterfrom
denizberkin:master

Conversation

@denizberkin
Copy link

Changed all occurrences, afaik.
Should work with versions of python>=3.10 and numpy>2.0.0.

  • preferred np.float64 because of high range, this can be changed in the case of needing performance without a high range limitation.
  • some type-checking further on became obsolete because of the change forcing the data type to np.float64. (e.g. type(data) in [np.float64, np.float32])

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant