Closed Alalalalaki closed 3 years ago
What is your version of numba ? Maybe it doesn't support literal_value ? Can you try to update numba ?
On Sun, Feb 21, 2021 at 11:25 PM Xuanli Zhu notifications@github.com wrote:
I am trying the dolo package. First it raise the jitclass problem described in #80 https://github.com/EconForge/interpolation.py/issues/80. And I solve the problem by updating to the recent v2.2.0.
But then it raises TypingError about __eval_cubic in eval_splines.py.
[image: image] https://user-images.githubusercontent.com/31154974/108640801-0546ff00-74df-11eb-9ecc-74ff5db8651e.png
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/EconForge/interpolation.py/issues/81, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACDSKOIDQLMWK3HXF4HZ33TAGB5NANCNFSM4X7NZLTA .
@albop I have numba v0.52.0. I think this is the latest version.
Could you tell me more about what you are trying to do with dolo? Maybe there is an incorrect call happening in dolo rather than interpolation.py ?
On Mon, Feb 22, 2021 at 12:12 AM Xuanli Zhu notifications@github.com wrote:
@albop https://github.com/albop I have numba v0.52.0. I think this is the latest version.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/EconForge/interpolation.py/issues/81#issuecomment-782946475, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACDSKMAAFOFJZ5Y2WHYSGLTAGHNPANCNFSM4X7NZLTA .
@albop I am running the example in the "Getting started".
from dolo import * # load the library
model = yaml_import("https://raw.githubusercontent.com/EconForge/dolo/master/examples/models/rbc.yaml")
# import the model
display(model) # display the model
dr = time_iteration(model, verbose=True) # solve
sim = simulate(model, dr) # simulate
This error is raised in the last procedure simulate(model, dr)
.
Thanks, I can reproduce it on my computer. It is indeed a regression in interpolation==2.2.0 . I'll fix it asap (this week, hopefully tomorrow). A quick fix is to install interpolation=2.1.6 and remove the line importing jitclass.
Fixed by #83 . @Alalalalaki , you can try again if you wnat.
I am trying out the dolo package. First it raise the jitclass problem described in #80. And I solve the problem by updating to the recent v2.2.0.
But then it raises a TypingError about
__eval_cubic
ineval_splines.py
.