@@ -171,11 +171,13 @@ def test_variable_property(prop):
171
171
False ,
172
172
marks = xfail (reason = "'COO' object has no attribute 'item'" ),
173
173
),
174
- param (do ("max" ), False , marks = xfail (reason = "Coercion to dense via bottleneck" )),
175
174
param (
176
- do ("median" ), False , marks = xfail (reason = "Coercion to dense via bottleneck" )
175
+ do ("median" ),
176
+ False ,
177
+ marks = xfail (reason = "Missing implementation for np.nanmedian" ),
177
178
),
178
- param (do ("min" ), False , marks = xfail (reason = "Coercion to dense via bottleneck" )),
179
+ param (do ("max" ), False ),
180
+ param (do ("min" ), False ),
179
181
param (
180
182
do ("no_conflicts" , other = make_xrvar ({"x" : 10 , "y" : 5 })),
181
183
True ,
@@ -199,7 +201,7 @@ def test_variable_property(prop):
199
201
param (
200
202
do ("rank" , dim = "x" ),
201
203
False ,
202
- marks = xfail (reason = "Coercion to dense via bottleneck" ),
204
+ marks = xfail (reason = "Only implemented for NumPy arrays ( via bottleneck) " ),
203
205
),
204
206
param (
205
207
do ("reduce" , func = np .sum , dim = "x" ),
@@ -214,13 +216,17 @@ def test_variable_property(prop):
214
216
param (
215
217
do ("shift" , x = 2 ), True , marks = xfail (reason = "mixed sparse-dense operation" )
216
218
),
217
- param (do ("std" ), False , marks = xfail (reason = "Coercion to dense via bottleneck" )),
219
+ param (
220
+ do ("std" ), False , marks = xfail (reason = "Missing implementation for np.nanstd" )
221
+ ),
218
222
param (
219
223
do ("sum" ),
220
224
False ,
221
225
marks = xfail (reason = "Missing implementation for np.result_type" ),
222
226
),
223
- param (do ("var" ), False , marks = xfail (reason = "Coercion to dense via bottleneck" )),
227
+ param (
228
+ do ("var" ), False , marks = xfail (reason = "Missing implementation for np.nanvar" )
229
+ ),
224
230
param (do ("to_dict" ), False , marks = xfail (reason = "Coercion to dense" )),
225
231
param (
226
232
do ("where" , cond = make_xrvar ({"x" : 10 , "y" : 5 }) > 0.5 ),
@@ -476,16 +482,14 @@ def test_dataarray_property(prop):
476
482
False ,
477
483
marks = xfail (reason = "'COO' object has no attribute 'item'" ),
478
484
),
479
- param (do ("max" ), False , marks = xfail (reason = "Coercion to dense via bottleneck" )),
485
+ param (do ("max" ), False ),
486
+ param (do ("min" ), False ),
480
487
param (
481
- do ("median" ), False , marks = xfail (reason = "Coercion to dense via bottleneck" )
482
- ),
483
- param (do ("min" ), False , marks = xfail (reason = "Coercion to dense via bottleneck" )),
484
- param (
485
- do ("notnull" ),
488
+ do ("median" ),
486
489
False ,
487
- marks = xfail (reason = "'COO' object has no attribute 'notnull' " ),
490
+ marks = xfail (reason = "Missing implementation for np.nanmedian " ),
488
491
),
492
+ param (do ("notnull" ), True ),
489
493
param (
490
494
do ("pipe" , np .sum , axis = 1 ),
491
495
True ,
@@ -504,7 +508,7 @@ def test_dataarray_property(prop):
504
508
param (
505
509
do ("rank" , "x" ),
506
510
False ,
507
- marks = xfail (reason = "Coercion to dense via bottleneck" ),
511
+ marks = xfail (reason = "Only implemented for NumPy arrays ( via bottleneck) " ),
508
512
),
509
513
param (
510
514
do ("reduce" , np .sum , dim = "x" ),
@@ -532,13 +536,17 @@ def test_dataarray_property(prop):
532
536
True ,
533
537
marks = xfail (reason = "Indexing COO with more than one iterable index" ),
534
538
), # noqa
535
- param (do ("std" ), False , marks = xfail (reason = "Coercion to dense via bottleneck" )),
539
+ param (
540
+ do ("std" ), False , marks = xfail (reason = "Missing implementation for np.nanstd" )
541
+ ),
536
542
param (
537
543
do ("sum" ),
538
544
False ,
539
545
marks = xfail (reason = "Missing implementation for np.result_type" ),
540
546
),
541
- param (do ("var" ), False , marks = xfail (reason = "Coercion to dense via bottleneck" )),
547
+ param (
548
+ do ("var" ), False , marks = xfail (reason = "Missing implementation for np.nanvar" )
549
+ ),
542
550
param (
543
551
do ("where" , make_xrarray ({"x" : 10 , "y" : 5 }) > 0.5 ),
544
552
False ,
0 commit comments