Repository navigation
scripts: inject_dataset.py --programs selects the source root's files by program - #661
Merged
Merged
Conversation
… by program, so flight/'s other programs are not copied into an injected dataset Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Change:
scripts/inject_dataset.pytakes--programs(comma-separated program numbers, orall, the default) and passes it to the loop'sSelection.parse, whoseadmits_stemalready filters on the stem's program. The dry-run summary already prints the selection's programs. One test: a listing of program 342 and 1049 stems with--programs 342keeps only the six 342 files.Reason:
flight/holds 1049's files and other programs' in the same filters as 1062. In catalog mode, a selected file without a catalog source on it is copied byte for byte under<dest>l2/, so the other programs' files would land in flight-1062-inj1 and could not be cleaned out afterwards (Azalee, staging the run).--pointingscannot stand in: a pointing is (visit, exposure), which programs can share.Docs: Caltech-IPAC/rapid_docs#245 (the flight-1062-inj1 command with
--programs 1062). Please merge that first.Testing:
tests/unit/test_inject_dataset.py12/12 locally; the new test fails without the change.🤖 Generated with Claude Code