Repository navigation
checkCalendarYears(): shared check for model-year run times - #32
Closed
eliotmcintire wants to merge 1 commit into
Closed
eliotmcintire wants to merge 1 commit into
eliotmcintire wants to merge 1 commit into
Conversation
…imate years Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 15, 2026
eliotmcintire
added a commit
that referenced
this pull request
Oct 15, 2026
checkCalendarYears(): shared check for model-year run times Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014G18Mik3fH4z5M5CyMSUS6
Collaborator
Author
|
Closing: this change is carried on |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Modules that use climate data by calendar year, canClimateData and climateYear, each carried a copy of the same check for runs whose times are model years such as 0 to 10. This moves the check here so both call one function.
Affects: New exported
checkCalendarYears(); no change to existing functions or results.Technical details
checkCalendarYears(start, end, module, hint, years)stops whenstartis outside the span ofavailable()(1901 to 2100), or outsiderange(years)when a caller passes the years it will load. The run may end after the last year. Tests intests/testthat/test-checkCalendarYears.R. Suite withouttest-prepClimateLayers.R(needs Google Drive credentials): 62 pass, 0 fail on this branch (51 on development, which lacks the new file);checkDocFilesandcodocare clean.🤖 Generated with Claude Code