QuantEcon / lecture-python-advanced

Source files for https://python-advanced.quantecon.org
BSD 3-Clause "New" or "Revised" License
41 stars 22 forks source link

[26_von_neumann_model]fix numpy warning #193

Closed sayaikegawa closed 3 years ago

sayaikegawa commented 3 years ago

Hi @jstac , This PR fixes

DeprecationWarning: np.asscalar(a) is deprecated since NumPy v1.16, use a.item() instead

in this lecture.

Here is the comparison between the website before this PR(LHS) and after this PR (RHS). Screen Shot 2021-01-27 at 5 45 11 pm Screen Shot 2021-01-27 at 5 45 49 pm Screen Shot 2021-01-27 at 5 46 26 pm Screen Shot 2021-01-27 at 5 46 53 pm Screen Shot 2021-01-27 at 5 47 15 pm Screen Shot 2021-01-27 at 5 47 38 pm

github-actions[bot] commented 3 years ago

🚀 Deployed on https://60110f4c132aa2b0c91de511--cocky-austin-ce446a.netlify.app

jstac commented 3 years ago

Very nice work, thanks @sayaikegawa