-
-
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
Example of test error when using numpy 1.13.1 #1468
Comments
talumbau
pushed a commit
to talumbau/Tax-Calculator
that referenced
this issue
Jul 12, 2017
- Resolves PSLmodels#1468 - if attribute passed to 'high level' function is a Series, grab the underlying 'values' attribute, which is enough like an ndarray to satisfy Numba (so that the jit operation can succeed)
talumbau
pushed a commit
to talumbau/Tax-Calculator
that referenced
this issue
Jul 12, 2017
- Resolves PSLmodels#1468 - if attribute passed to 'high level' function is a Series, grab the underlying 'values' attribute, which is enough like an ndarray to satisfy Numba (so that the jit operation can succeed)
talumbau
pushed a commit
to talumbau/Tax-Calculator
that referenced
this issue
Jul 12, 2017
- Resolves PSLmodels#1468 - if attribute passed to 'high level' function is a Series, grab the underlying 'values' attribute, which is enough like an ndarray to satisfy Numba (so that the jit operation can succeed)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Below I show how updating from numpy 1.12.1 to numpy 1.13.1 causes an error in the decorator code. It does seem to be all about the code in
decorators.py
because when I turn off the decorator logic the error goes away. I don't know whether the decorator code needs to be changed or whether there is a bug in the new numpy 1.13.1 package or in another package (like numba) that relies on the new numpy 1.13.1.Here is the detailed information where
@pytest.mark.one
is used to execute just the third test in thetest_behavior.py
file. First, I show the marked test passing when using numpy 1.12.1:Then I update to the newest numpy version and run the same test again.
When using the numpy 1.13 packages, I can pass this one marked test by uncommenting two lines in the
decorators.py
file in order to "turn off" the decorator logic. The test takes much longer to run, but it does pass. The decorator logic is turned off by changing these lines:to these lines:
The decorator logic was written before I started working on Tax-Calculator, so I don't know much about it. Any thoughts or suggestions?
@MattHJensen @PeterDSteinberg @talumbau
The text was updated successfully, but these errors were encountered: