Repository navigation
Add scoreELFs: read and score only the named ELFs - #37
Open
eliotmcintire wants to merge 2 commits into
Open
eliotmcintire wants to merge 2 commits into
eliotmcintire wants to merge 2 commits into
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Lx3DXhXsFis2pbqBTh2PPh
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Lx3DXhXsFis2pbqBTh2PPh
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.
Scoring jobs can now be told which ELFs to read. When each job in a campaign scores only its own ELF, the jobs no longer all read every ELF and wait on each other.
Affects: Nothing changes unless the new
scoreELFsparameter is set; then only those ELFs are read and scored.Technical details
Defect:
.inputObjects(fireSimulator_validation.R, thedone <- Filter(...)block) passed every finished ELF inhindcastPathtoreadHindcastELFs(); onlyskipELFs(a blacklist) could narrow it, so N chain score jobs each read N ELFs and contended on the sameelfsCache locks.Fix: new parameter
scoreELFs(defaultcharacter(0)= every finished ELF). When set, the ELFs read arescoreELFsminusskipELFs; a name with no folder inhindcastPathstops the job ("not in hindcastPath", likely a typo); one that exists but has not finished allhindcastYearsstops it too ("not finished"); so does ascoreELFsthat is all inskipELFs. Each message names the ELFs.cacheKey = FALSE: only.inputObjects(never cached) reads it, and the ELFs it yields are already ininit's key (as withhindcastPath,inputsPath). Version 0.0.0.9032, NEWS line added. README lists no parameters.Reuses:
hindcastFinishedYears(),readHindcastELFs(),setdiffonskipELFs; new: none (a few lines in.inputObjects).Tests: new test in test-module.R (two toy ELFs plus an unfinished one, via
toyHindcastFiles()andrunToyModule()): default reads both,scoreELFs = "7.7"reads one,skipELFsis subtracted, an unfinished ELF, a nonexistent ELF and an all-skippedscoreELFseach error with their own message. On the base it fails (2 failures: all ELFs read, no error). Full suites, measured: branch 160 tests, 0 failed, 0 skipped (857 expectations); base (a5a003f, without the new test) 159 tests, 0 failed (851 expectations).Independent of #34.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Lx3DXhXsFis2pbqBTh2PPh