question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Rename `ndmeasure`'s `sum` function

See original GitHub issue

The sum function in ndmeasure here overlaps with the sum builtin. Basically this is a consequence of following the SciPy API. That said, it would be nice to improve things here. Though it would be good to see if SciPy is amenable to such a change first and if so follow their lead. ( https://github.com/scipy/scipy/issues/10593 )

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
jakirkhamcommented, Oct 1, 2020

Would rename the function and a new sum function, which issues a DeprecationWarning before calling sum_labels.

1reaction
GenevieveBuckleycommented, Nov 1, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

Rename `sum` ndimage function · Issue #10593 - GitHub
The scipy.ndimage function sum overlaps with the Python builtin sum. This can cause issues both within code trying to implement this ...
Read more >
Solved: rename column - Microsoft Power BI Community
Solved: I used the average in a column, but do not want the column to be average as indicated in the picture, is...
Read more >
Cannot rename column name of dataframe made by .sum ...
I created a dataframe 'month' from dataframe 'user' using .sum() and .reset_index() function. I am only able to rename the 'index' column ...
Read more >
Local Planners Catalog of LEED-ND Measures - City of Tacoma
Local Planners Catalog of LEED-ND Measures ... ND prerequisites have been renamed minimum requirements, which are intended for application.
Read more >
dask-image Documentation
2.3.1 Coverage of dask-image vs scipy ndimage functions ... dask_image.ndmeasure.sum(image, label_image=None, index=None).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found