-
-
Notifications
You must be signed in to change notification settings - Fork 157
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
Request for assistance: Interacting directly with a jitted function #2489
Comments
Turning off jit for the tests may help. E.g., #2144 I can play around with this in the next few days if you're still blocked. Thanks for working on this! |
Hi @jdebacker and @andrewjs00. Seems like a great project. I'm not sure of the best way to interact with a jitted function, but an alternative approach to this sort of test is to create a |
@MattHJensen Thanks for linking to those issues - I guess this has been a problem in the past. I tried adding:
To my test, but while @Peter-Metz Thanks for this suggestion. I'd like to be able to deal with functions directly - one of the advantages being that you can more easily find the source of bugs where a particular value of a final output variable may be a result of several functions (which perhaps isn't the case in our application to |
@MattHJensen Yes, @chusloj has addressed this issue. Thanks! |
I'm working with @andrewjs00 to develop more units tests for the functions in
calcfunctions.py
.We are running into difficulty understanding how to interact with the
@iterate_jit
-decorated functions directly and would appreciate some guidance on this.I suggested @andrewjs00 start with
calcfunctions.DependentCare
because its logic is straightforward and it takes a relatively small set of arguments. The function appears to take a tuple with 9 arguments and so the following test was written:If the
@iterate_jit
is removed, this tests passed. However, with the decorator, the test fails with the following traceback:We've tried some modifications in how to pass arguments to the
DependentCare()
function, but none has worked with the decorator in place. The docstrings and inline comments in the function or in thedecorators.py
module aren't helpful in figuring out our issue.cc @MattHJensen @Peter-Metz @andersonfrailey
The text was updated successfully, but these errors were encountered: