Skip to content
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

TypingError appearing on Python lectures on stochastic growth #499

Closed
ssingleton opened this issue Jul 24, 2019 · 4 comments
Closed

TypingError appearing on Python lectures on stochastic growth #499

ssingleton opened this issue Jul 24, 2019 · 4 comments

Comments

@ssingleton
Copy link

Here is the head of the error on Stochastic Growth 1:
TypingError Traceback (most recent call last) <ipython-input-10-597809653131> in <module> 3 4 v_init = v_star(grid, α, β, μ) # Start at the solution ----> 5 v = T(v_init) # Apply the Bellman operator once 6 7 fig, ax = plt.subplots(figsize=(9, 5))

Here is the head of the error on Stochastic Growth 2:
TypingError Traceback (most recent call last) <ipython-input-9-7c0cb6c2538d> in <module> 7 for i in range(sim_length): 8 σ = K(σ) # Time iteration ----> 9 v = T(v) # Value function iteration 10 11 # Calculate difference with actual solution

There are more errors, but I didn't want to overwhelm this page.

@jstac
Copy link
Contributor

jstac commented Jul 24, 2019

Thanks @ssingleton, much appreciated!

Numba has changed and broken our jitted scalar optimizer. See #495. This is flowing on to our lectures.

@mmcky has put together a temporary fix but I guess it's not published yet?

@mmcky
Copy link
Contributor

mmcky commented Jul 25, 2019

hey @ssingleton thanks for the report.

The local fix if you would like to run those lectures is to upgrade numba

conda install numba=0.44.1

@jstac the update to 0.44.1 hasn't been pushed yet due to the introduction of the other failure for the int_ type checking issue.

@mmcky
Copy link
Contributor

mmcky commented Nov 4, 2019

the latest release of anaconda has numba=0.45.1 so this should no longer be an issue.

@mmcky
Copy link
Contributor

mmcky commented Nov 4, 2019

thanks @ssingleton for reporting this. Please let us know if you spot any other errors.

@mmcky mmcky closed this as completed Nov 4, 2019
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

No branches or pull requests

3 participants