Skip to content

Update datatypes to be compatible with numpy >= 1.20#14

Open
fnands wants to merge 4 commits intocentreborelli:masterfrom
fnands:master
Open

Update datatypes to be compatible with numpy >= 1.20#14
fnands wants to merge 4 commits intocentreborelli:masterfrom
fnands:master

Conversation

@fnands
Copy link

@fnands fnands commented Jun 15, 2023

The datatypes np.bool, np.float and np.int have been deprecated since numpy 1.20.

This means running the code with a newer version will result in a crash.

This PR updates the datatypes.

The recommended updates for np.float and np.int are the native datatypes int and float, but as there were other occasions in the code where np.float32 and np.int32 were used, I updated them to these for the sake of consistency.

fnands added 4 commits June 15, 2023 15:32
Change `np.float` to `np.float32`
Change `np.bool` to `bool`
Change `np.int` to `np.int32`
Change `np.int` to `np.int32`
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