Skip to content

[short_path] Fix DeprecationWarning #163

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 1 commit into from
Jul 9, 2021
Merged

Conversation

kuramogura
Copy link
Contributor

Fix the following warning.

DeprecationWarning: `np.int` is a deprecated alias for the builtin `int`. To silence this warning, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
  J = np.zeros_like(nodes, dtype=np.int)

@mmcky
Copy link
Contributor

mmcky commented Jul 7, 2021

thanks @kuramogura

@jstac
Copy link
Contributor

jstac commented Jul 9, 2021

Thanks @kuramogura , looks good to me.

If you have time, similar PRs for the Python lectures on quantecon.org would be greatly appreciated ;-)

@mmcky mmcky merged commit 2881ac4 into QuantEcon:main Jul 9, 2021
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