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

Imviz: Curve of growth plot #1287

Merged
merged 4 commits into from
May 9, 2022

Conversation

pllim
Copy link
Contributor

@pllim pllim commented May 3, 2022

Description

This pull request is to add curve of growth plot in Simple Aperture Photometry plugin.

Screenshot 2022-05-03 184346

🐱

Checklist for package maintainer(s)

This checklist is meant to remind the package maintainer(s) who will review this pull request of some common things to look for. This list is not exhaustive.

  • Are two approvals required? Branch protection rule does not check for the second approval. If a second approval is not necessary, please apply the trivial label.
  • Do the proposed changes actually accomplish desired goals? Also manually run the affected example notebooks, if necessary.
  • Do the proposed changes follow the STScI Style Guides?
  • Are tests added/updated as required? If so, do they follow the STScI Style Guides?
  • Are docs added/updated as required? If so, do they follow the STScI Style Guides?
  • Did the CI pass? If not, are the failures related?
  • Is a change log needed? If yes, is it added to CHANGES.rst?
  • Is a milestone set?
  • After merge, any internal documentations need updating (e.g., JIRA, Innerspace)?

@pllim pllim added the 💤 enhancement New feature or request label May 3, 2022
@pllim pllim added this to the 2.6 milestone May 3, 2022
@github-actions github-actions bot added documentation Explanation of code and concepts imviz labels May 3, 2022
@pllim pllim force-pushed the curve-of-growthing-pain branch from 96e09d0 to 12cadbf Compare May 4, 2022 21:47
@pllim

This comment was marked as resolved.

@pllim pllim marked this pull request as ready for review May 4, 2022 22:06
@kecnry
Copy link
Member

kecnry commented May 4, 2022

Gotta love error messages that make it sound like nothing is actually wrong! 😆

I think the dev console message is unrelated (I've seen it before on main) and I think it is raised before everything is displayed so it doesn't seem to affect anything (but we should dig into that at some point).

Can you track down what traitlet is raising that by any chance? I created a subset and computed the curve of growth in your PR, but failed to reproduce. Is there any other step I'm missing?

@pllim
Copy link
Contributor Author

pllim commented May 4, 2022

Do you see it if you run the example in https://github.com/spacetelescope/jdaviz/blob/main/notebooks/concepts/imviz_simple_aper_phot.ipynb ?

If it is just me, I'll chuck it under "dirty env, too bad" and move on...

@pllim pllim requested a review from larrybradley May 4, 2022 23:11
@kecnry
Copy link
Member

kecnry commented May 5, 2022

I do see it there, including when creating and using manual subsets, but do not see it in the 47 Tuc data from the example notebook 🤔

@pllim
Copy link
Contributor Author

pllim commented May 5, 2022

imviz_simple_aper_phot.ipynb uses old simulated JWST data. But since you see the warning outside this patch, maybe we can chuck it under "out of scope, worry later"?

@kecnry
Copy link
Member

kecnry commented May 5, 2022

Just checked in main and I do not see the same message there when running "radial profile", and in this PR it also seems to only occur during "curve of growth". So I think it was introduced here... the warning itself seems pretty harmless, but it would be nice to know where it is coming from and suppress it if possible?

@pllim

This comment was marked as resolved.

@pllim pllim force-pushed the curve-of-growthing-pain branch from 12cadbf to 326b08c Compare May 5, 2022 19:08
@codecov
Copy link

codecov bot commented May 5, 2022

Codecov Report

Merging #1287 (1bece52) into main (5656dc5) will increase coverage by 0.10%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1287      +/-   ##
==========================================
+ Coverage   80.96%   81.07%   +0.10%     
==========================================
  Files          90       90              
  Lines        7428     7471      +43     
==========================================
+ Hits         6014     6057      +43     
  Misses       1414     1414              
Impacted Files Coverage Δ
...imviz/plugins/aper_phot_simple/aper_phot_simple.py 91.46% <100.00%> (+1.46%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5656dc5...1bece52. Read the comment docs.

Copy link
Member

@kecnry kecnry left a comment

Choose a reason for hiding this comment

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

LGTM - can't find a way to break it and the warning messages are now gone!

@pllim pllim force-pushed the curve-of-growthing-pain branch from 326b08c to 1bece52 Compare May 6, 2022 14:10
Copy link
Collaborator

@rosteen rosteen 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 to me, didn't manage to break it.

@rosteen rosteen merged commit 54ba920 into spacetelescope:main May 9, 2022
@pllim pllim deleted the curve-of-growthing-pain branch May 9, 2022 16:44
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
documentation Explanation of code and concepts imviz Ready for final review 💤 enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants