Skip to content

Fixing np.bool Depreciation warnings: 3 files #4673

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
May 3, 2021
Merged

Fixing np.bool Depreciation warnings: 3 files #4673

merged 9 commits into from
May 3, 2021

Conversation

larryshamalama
Copy link
Member

Addressing issue 4670

Not sure where the test warnings come from. I changed "np.bool" to "np.bool_" in 3 files as the warning suggests.

@twiecki
Copy link
Member

twiecki commented Apr 30, 2021

Thanks for taking this on! The warning says to just replace it with bool, rather than np.bool_.

@larryshamalama
Copy link
Member Author

larryshamalama commented May 1, 2021

Oh, I see, I assumed that numpy data types were preferred because of the other key/value pairs in stats_dtypes. Is bool preferred over np.bool_?

@twiecki
Copy link
Member

twiecki commented May 1, 2021

Seems like np.bool was just an alias to bool anyway, so let's just stick with that.

@larryshamalama
Copy link
Member Author

Fixed! (+ other files not mentioned in the error shown in the original issue)

@twiecki twiecki merged commit 3a02dcc into pymc-devs:v4 May 3, 2021
@twiecki
Copy link
Member

twiecki commented May 3, 2021

Thanks @larryshamalama and congrats on your first PR! 🥳

@larryshamalama
Copy link
Member Author

Thank you very much! 🙂

@larryshamalama larryshamalama deleted the numpy-depreciation-fix branch May 6, 2021 04:39
twiecki pushed a commit that referenced this pull request Jun 5, 2021
* 🐢 Fixed documentation

* 🐢 Minor fix on top of grammar fixed in docs

* Weibull RandomVariable refactoring: an example

* Revert "Weibull RandomVariable refactoring: an example"

This reverts commit 685a065.

* Fixing np.bool depreciation warnings: 3 files

* Changed np.bool_ to bool (+ fixed other places)
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.

3 participants