QuantEcon / lecture-source-py

Source files for "Lectures in Quantitative Economics" -- Python version
BSD 3-Clause "New" or "Revised" License
192 stars 77 forks source link

additive_functionals: replaced deprecated np.asscalar(a) with a.item() #918

Closed mtiley closed 4 years ago

mtiley commented 4 years ago
jstac commented 4 years ago

Thanks @mtiley

Could one of you please review this @sayaikegawa @Harveyt47 @shlff ?

mtiley commented 4 years ago

Thanks @shlff. The RuntimeWarning was already present before I made any changes (see #903).

I thought it would be best to solve the DeprecationWarning in a separate PR and as a separate issue while working on the RuntimeWarning, as the two are not related.

Harveyt47 commented 4 years ago

Hi @mtiley , you've fixed the issue of DeprecationWarning on my end. Cheers.

shlff commented 4 years ago

Thanks @mtiley and @jstac , nice job to solve issue #917 . The code looks nice. Let's solve issue #903 in another PR.