Skip to content

Fix bug with accessing "weighted_centroid" attribute#918

Open
AmarUCLA wants to merge 1 commit intoDigitalSlideArchive:masterfrom
AmarUCLA:patch-1
Open

Fix bug with accessing "weighted_centroid" attribute#918
AmarUCLA wants to merge 1 commit intoDigitalSlideArchive:masterfrom
AmarUCLA:patch-1

Conversation

@AmarUCLA
Copy link
Copy Markdown

The new scikit-image version now uses the attribute name "centroid_weighted" instead of "weighted_centroid". In addition to this, there were bugs with accesses the attribute as prop.centroid_weighted, so now changed it to accessing the attribute as prop['centroid_weighted']

The new scikit-image version now uses the attribute name "centroid_weighted" instead of "weighted_centroid". In addition to this, there were bugs with accesses the attribute as prop.centroid_weighted, so now changed it to accessing the attribute as prop['centroid_weighted']
@manthey
Copy link
Copy Markdown
Contributor

manthey commented Dec 8, 2021

With scikit-image 0.19, the code with "weighted_centroid" is still allowed. With this change, we need some code to handle either case (so the library still works as long as we support Python 3.6, since the last scikit-image version that works on 3.6 is 0.17).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants