Skip to content
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

MAINTENANCE: rename sum to sum_labels and add a deprecation warning #123 #172

Merged
merged 15 commits into from
Nov 1, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update tests/test_dask_image/test_ndmeasure/test_core.py
  • Loading branch information
GenevieveBuckley authored Nov 1, 2020
commit 2c568f61639fbc6f8b7a4de2d4c344bc3c712025
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 @@ -112,7 +112,7 @@ def test_center_of_mass(datatype):
]
)
def test_measure_props(funcname, shape, chunks, has_lbls, ind):
if funcname == 'sum_labels' and scipy.__version__ > LooseVersion('1.5.0'):
if funcname == 'sum_labels' and scipy.__version__ < LooseVersion('1.5.0'):
tkoyama010 marked this conversation as resolved.
Show resolved Hide resolved
scipy_funcname = 'sum' # early scipy version uses a different name
else:
scipy_funcname = funcname
Expand Down