-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix nightly test failures #11204
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
Fix nightly test failures #11204
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2646,6 +2646,7 @@ def test_complex_number_reduce(compute_backend): | |
| da.min() | ||
|
|
||
|
|
||
| @pytest.mark.filterwarnings("ignore:numpy.fix is deprecated.") | ||
| def test_fix() -> None: | ||
| val = 3.0 | ||
| val_fixed = np.fix(val) | ||
|
Comment on lines
+2649
to
2652
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we could also just remove (or deprecate?) support for
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah sorry I meant to put notes on each of these. I looked at the PR where this was added and it was specifically resolving an infinite recursion that was possible within |
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4908,8 +4908,6 @@ def exp_decay(t, n0, tau=1): | |
| param_names = ["a"] | ||
| params, func_args = _get_func_args(np.power, param_names) | ||
| assert params == param_names | ||
| with pytest.raises(ValueError): | ||
| _get_func_args(np.power, []) | ||
|
Comment on lines
-4911
to
-4912
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. do you know what about
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I didn't find any information specifically on
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
yeah i think ufuncs have better python-accessible signatures now |
||
|
|
||
| @requires_scipy | ||
| @pytest.mark.parametrize("use_dask", [True, False]) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like this was only supposed to cast
objectdtype arrays to numpy string, in which case this is fine.If we actually do want to cast the pandas string dtype to a numpy string dtype, however, we may need to change that (@dcherian, do you remember what our policy on pandas dtypes was?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right yeah there might be something else that needs doing to support these more completely. For instance you can't write them to netcdf or zarr, but I tested with older versions of pandas/numpy and it looks like this test has always hit this except it's just the type changed from
TypeErrortoValueErrorThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think at the moment we do; and then relax it intentionally. However, we seem to have done pretty badly at that haha. Things seem to keep breaking.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok so something to keep working towards, but for the purposes of getting CI green again, maybe no worse than it was before is fine for now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes absolutely