Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix centroid error in line analysis plugin #509

Merged
merged 1 commit into from
Apr 14, 2021

Conversation

rosteen
Copy link
Collaborator

@rosteen rosteen commented Apr 13, 2021

It seems like a numpy update (maybe?) cause the existing syntax (array is False) to no longer work as it once did, which was causing the centroid handling in the line analysis plugin to fail. Switching to array == 0 fixes it.

I also fixed a bug I found while testing this that caused get_subsets_from_viewer to fail if you called the function with a data_label specified.

@rosteen
Copy link
Collaborator Author

rosteen commented Apr 13, 2021

Whoa, looks like my local commits are all messed up. I'll have to fix that. (EDIT: fixed)

Copy link
Contributor

@ibusko ibusko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The centroid functionality is working fine now.

Copy link
Contributor

@javerbukh javerbukh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@javerbukh
Copy link
Contributor

Merging.

@javerbukh javerbukh merged commit 393bd47 into spacetelescope:main Apr 14, 2021
@rosteen rosteen deleted the centroid-debug branch September 10, 2021 17:21
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants