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

Further Prune PostProcessing Code, Specifically plot_posterior And spread_draws #431

Conversation

AFg6K7h4fhy2
Copy link
Collaborator

This PR:

In an effort to leave post-processing to the user, DB + others have determined that plot_posterior and spread_draws, stemming from the mcmcutils.py and being used partially in metaclass.py can be pruned.

@AFg6K7h4fhy2 AFg6K7h4fhy2 added the clean up Good code that could be better label Sep 5, 2024
@AFg6K7h4fhy2 AFg6K7h4fhy2 added this to the R Sprint milestone Sep 5, 2024
@AFg6K7h4fhy2 AFg6K7h4fhy2 self-assigned this Sep 5, 2024
@damonbayer damonbayer modified the milestones: 🦖 Rajasaurus, S Sprint Sep 13, 2024
Copy link

codecov bot commented Sep 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.63%. Comparing base (20df5b3) to head (bda24ac).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #431      +/-   ##
==========================================
+ Coverage   94.51%   96.63%   +2.12%     
==========================================
  Files          42       41       -1     
  Lines        1003      952      -51     
==========================================
- Hits          948      920      -28     
+ Misses         55       32      -23     
Flag Coverage Δ
unittests 96.63% <ø> (+2.12%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@AFg6K7h4fhy2 AFg6K7h4fhy2 marked this pull request as ready for review October 2, 2024 17:26
@dylanhmorris
Copy link
Collaborator

 pyproject.toml: DEP002 'matplotlib' defined as a dependency but not used in the codebase

@AFg6K7h4fhy2 can you remove?

@damonbayer
Copy link
Collaborator

@dylanhmorris it is used in the tutorials, which I don't think deptry recognizes

@dylanhmorris
Copy link
Collaborator

dylanhmorris commented Oct 2, 2024

Remove from the main dependency group and add to docs then?

…_posterior-and-spread_draws' of github.com:CDCgov/multisignal-epi-inference into 426-further-prune-postprocessing-code-specifically-plot_posterior-and-spread_draws
ax.plot(
np.arange(dow_effect_raw.shape[0]),
dow_plot_samples.mean(dim="draw"),
color="red",
Copy link
Collaborator

Choose a reason for hiding this comment

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

this plot still has the old colors

Copy link
Collaborator

@damonbayer damonbayer left a comment

Choose a reason for hiding this comment

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

one more plot to fix, then it will be ready to merge! Thanks @AFg6K7h4fhy2

@damonbayer damonbayer self-requested a review October 3, 2024 19:28
Copy link
Collaborator

@damonbayer damonbayer left a comment

Choose a reason for hiding this comment

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

Nice work @AFg6K7h4fhy2

@damonbayer damonbayer merged commit 9a996a3 into main Oct 3, 2024
7 checks passed
@damonbayer damonbayer deleted the 426-further-prune-postprocessing-code-specifically-plot_posterior-and-spread_draws branch October 3, 2024 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clean up Good code that could be better
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Further Prune PostProcessing Code, Specifically plot_posterior And spread_draws
3 participants