File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -283,7 +283,7 @@ def inplace_to_noninplace_op(f):
283
283
# _typed_ops.py uses the following wrapped functions as a kind of unary operator
284
284
argsort = _method_wrapper ("argsort" )
285
285
conj = _method_wrapper ("conj" )
286
- conjugate = _method_wrapper ("conjugate " )
286
+ conjugate = _method_wrapper ("conj " )
287
287
round_ = _func_slash_method_wrapper (duck_array_ops .around , name = "round" )
288
288
289
289
Original file line number Diff line number Diff line change @@ -1822,3 +1822,15 @@ def test_idxmin_chunking():
1822
1822
actual = da .idxmin ("time" )
1823
1823
assert actual .chunksizes == {k : da .chunksizes [k ] for k in ["x" , "y" ]}
1824
1824
assert_identical (actual , da .compute ().idxmin ("time" ))
1825
+
1826
+
1827
+ def test_conjugate ():
1828
+ # Test for https://github.com/pydata/xarray/issues/10302
1829
+ z = 1j * da .arange (100 )
1830
+
1831
+ data = xr .DataArray (z , coords = {"x" : np .arange (100 )})
1832
+
1833
+ conj_data = data .conjugate ()
1834
+ assert dask .is_dask_collection (conj_data )
1835
+
1836
+ assert_equal (conj_data , data .conj ())
You can’t perform that action at this time.
0 commit comments