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

adding relevant plotting code from Mendoza et al. (2023) #924

Closed
wants to merge 3 commits into from

Conversation

sawanp813
Copy link
Collaborator

Adding a few functions used to generate the Detection PR and Classification PR figures (9, 10) from Mendoza et al. (2023).
create_detection_figure() is called to reproduce Figure 9 and create_classification_figure() is used to reproduce Figure 10. Both take a data dictionary as input indexed with values from a catalog necessary to reproduce the figures.

@codecov
Copy link

codecov bot commented Aug 11, 2023

Codecov Report

Merging #924 (5b20e8c) into master (494fe2b) will decrease coverage by 2.91%.
Report is 1 commits behind head on master.
The diff coverage is 5.82%.

❗ Current head 5b20e8c differs from pull request most recent head 14da11f. Consider uploading reports for the commit 14da11f to get more accurate results

@@            Coverage Diff             @@
##           master     #924      +/-   ##
==========================================
- Coverage   95.78%   92.87%   -2.91%     
==========================================
  Files          25       25              
  Lines        3085     3188     +103     
==========================================
+ Hits         2955     2961       +6     
- Misses        130      227      +97     
Flag Coverage Δ
unittests 92.87% <5.82%> (-2.91%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
bliss/plotting.py 34.35% <5.82%> (-48.98%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@sawanp813 sawanp813 closed this Aug 11, 2023
@sawanp813 sawanp813 reopened this Aug 11, 2023
@sawanp813 sawanp813 marked this pull request as draft August 11, 2023 16:30
Copy link
Contributor

@zhixiangteoh zhixiangteoh left a comment

Choose a reason for hiding this comment

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

Thanks for adding these! Will be very helpful for our (+ @XinyueLi1012) detection metrics plotting.

Think the code either:

  • doesn't need to get added to plotting.py yet; or
  • if we want to add it to plotting.py, do
    • add NOTE: ... code comment(s) in plotting.py calling attention to the fact that these are verbatim from Ismael and not compatible with the current status of the code
    • mark the code region as not testable (e.g., # pragma: no cover)

@jeff-regier
Copy link
Contributor

@sawanp813 Please add tests of the plotting code before merging. It may be necessary to modify the code a bit to be compatible with the rest of our repo.

@sawanp813
Copy link
Collaborator Author

@sawanp813 Please add tests of the plotting code before merging. It may be necessary to modify the code a bit to be compatible with the rest of our repo.

I was talking with @zhixiangteoh and @XinyueLi1012 about this and we figured that it might not be worth adding the actual plotting code back to the repo since all of us need to modify it in different ways for our own purposes (e.g. we can't exactly recover SNR information as easily as is required in the plotting code). So I just wanted to add a branch including my Figures.ipynb notebook that has a modified version of the code from Mendoza et al. (2023) used to generate my own plots that we can each use as a skeleton. The intent wasn't to actually add the code back to the repo unless that's something you still think would be a good idea.

We were thinking that since we each will have to make a different version of the plotting code, adding it in as an active branch/PR would make it easier to find. I can actually close this PR unless you'd like to add an updated version of the plotting code to plotting.py.

@jeff-regier
Copy link
Contributor

jeff-regier commented Aug 14, 2023

Fair enough. If there's a way to generalize this plotting code so that one version meets everyone's needs, it'd be a nice addition to our shared codebase. If not, we can include one-off versions in each case study.

@sawanp813
Copy link
Collaborator Author

Fair enough. If there's a way to generalize this plotting code so that one version meets everyone's needs, it'd be a nice addition to our shared codebase. If not, we can include one-off versions in each case study.

Agreed - I think once we all have our individual figures done, it's definitely worth adding some generalized version of that code to the repo if possible. Otherwise, we can stick with individual case studies like you said.

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.

3 participants