Skip to content

Commit

Permalink
FIX scipy LooseVersion for sum_labels check #176
Browse files Browse the repository at this point in the history
  • Loading branch information
tkoyama010 committed Nov 2, 2020
1 parent 885a34e commit adab15d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_dask_image/test_ndmeasure/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def test_center_of_mass(datatype):
)
def test_measure_props(funcname, shape, chunks, has_lbls, ind):
# early scipy version uses a different name sum insted of sum_labels.
if funcname == 'sum_labels' and scipy.__version__ < LooseVersion('1.5.0'):
if funcname == 'sum_labels' and scipy.__version__ < LooseVersion('1.6.0'):
scipy_funcname = 'sum'
else:
scipy_funcname = funcname
Expand Down

0 comments on commit adab15d

Please sign in to comment.