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

Reduce the number of attributes used by validate_forecast() #541

Merged
merged 5 commits into from
Jan 4, 2024

Conversation

nikosbosse
Copy link
Contributor

@nikosbosse nikosbosse commented Jan 3, 2024

Description

This PR fixes #515, fixes #456.

The PR

  • removes the attributes warnings, forecast_unit, and forecast_type from the output of validate_general()
  • replaces all instances where functions relied on a forecast_unit attribute by calls to get_forecast_unit()
  • removes a check_conflict option from get_forecast_unit(), which was there to check for a conflict between stored attribute and inferred forecast unit
  • removes a superfluous test

Checklist

  • My PR is based on a package issue and I have explicitly linked it.
  • I have included the target issue or issues in the PR title as follows: issue-number: PR title
  • I have tested my changes locally.
  • I have added or updated unit tests where necessary.
  • I have updated the documentation if required.
  • I have built the package locally and run rebuilt docs using roxygen2.
  • My code follows the established coding standards and I have run lintr::lint_package() to check for style issues introduced by my changes.
  • I have added a news item linked to this PR.
  • I have reviewed CI checks for this PR and addressed them as far as I am able.

Copy link

codecov bot commented Jan 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (c811d55) 83.74% compared to head (d7c64b3) 83.69%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #541      +/-   ##
===========================================
- Coverage    83.74%   83.69%   -0.06%     
===========================================
  Files           21       21              
  Lines         1723     1717       -6     
===========================================
- Hits          1443     1437       -6     
  Misses         280      280              

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

@nikosbosse nikosbosse marked this pull request as ready for review January 4, 2024 07:57
@nikosbosse nikosbosse requested a review from seabbs January 4, 2024 08:09
Copy link
Contributor

@seabbs seabbs left a comment

Choose a reason for hiding this comment

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

Nice. LGTM

@seabbs seabbs merged commit 5c7bdb9 into develop Jan 4, 2024
11 checks passed
@seabbs seabbs deleted the rework-validate_forceasts branch January 4, 2024 22:06
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.

2 participants