-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Revert "Do not attempt to broadcast when global option ``arithmetic_b… #8829
Conversation
7be08c4
to
7fdfcb2
Compare
Well this makes more sense. That PR didn't change behaviour. I must have a bad environment. |
a local bisect in a fresh environment confirms that it is the merge of #8784 that causes the failures, but I'm not sure why CI still fails even after the revert. Edit: a local revert does fix it as well, let me try pushing that here to see if there was just something wrong with the environment? Otherwise could also be the caching of the environment that causes weird issues. A minimal reproducer is just python -c 'from xarray.tests import create_test_data; create_test_data()' |
…roadcast=False`` (pydata#8784)" This reverts commit 11f89ec.
7fdfcb2
to
fdf7144
Compare
okay, wow. The issue appears to actually be the import of |
pinning For a slightly smaller reproducer, try: def example():
obj = Dataset()
obj["dim2"] = ("dim2", 0.5 * np.arange(9))
obj["time"] = ("time", pd.date_range("2000-01-01", periods=20)
print({k: v.data.flags for k, v in obj.variables.items()})
return obj
example()
import dask_expr
example() with |
Crazy I had the same |
I think I found it. def example():
obj = Dataset()
obj["dim2"] = ("dim2", 0.5 * np.arange(9))
obj["time"] = ("time", pd.date_range("2000-01-01", periods=20)
print({k: v.data.flags for k, v in obj.variables.items()})
return obj
example()
pd.set_options("mode.copy_on_write", True)
example() which makes sense, because both are dimension coordinates and thus have a default |
yes, I suspected Pandas but downgrading didn't change anything |
…roadcast=False`` (#8784)"
This reverts commit 11f89ec.
Reverting #8784
Sadly that PR broke a lot of tests by breaking
create_test_data
withSomehow that code changes whether
IndexVariable.values
returns a writeable numpy array. I spent some time debugging but couldn't figure it out.cc @etienneschalk