Revert "Do not attempt to broadcast when global option ``arithmetic_b…#8829
Revert "Do not attempt to broadcast when global option ``arithmetic_b…#8829dcherian wants to merge 1 commit intopydata:mainfrom
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_datawithSomehow that code changes whether
IndexVariable.valuesreturns a writeable numpy array. I spent some time debugging but couldn't figure it out.cc @etienneschalk