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

fix transform_pmf_model_out #57

Merged
merged 3 commits into from
Oct 17, 2024
Merged

Conversation

zkamvar
Copy link
Member

@zkamvar zkamvar commented Oct 3, 2024

This PR removes the model argument from the call to scoringutils::as_forecast_nominal() as they removed that argument in epiforecasts/scoringutils#915

Note that there were a bunch of "coercion to NA" warnings in the block of tests that checked for errors and warnings, so I wrapped them in suppressWarning().

This will fix #56

This change was introduced in
epiforecasts/scoringutils#915 and subsequently
broke our tests.
A whole bunch of new warnings started popping up because scoringutils
was trying to take the mean of character columns.

Wrapping everything in `suppressWarnings()` helps.
@zkamvar zkamvar requested a review from elray1 October 3, 2024 19:49
Copy link

github-actions bot commented Oct 3, 2024

Copy link
Contributor

@elray1 elray1 left a comment

Choose a reason for hiding this comment

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

I'm approving this PR.

I noticed that there are also stray model arguments in the other transform_* functions. In the name of keeping things small and moving along, I'll submit a separate PR for those.

@elray1 elray1 merged commit 196bd87 into main Oct 17, 2024
8 checks passed
@elray1 elray1 deleted the znk/fix-transorm_pmf_model_out/56 branch October 17, 2024 15:03
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.

transform_pmf_model_out() broken by new scoringutils
2 participants