Skip to content

feat(consistent-gslc): drop frames with no standard-mode stack - #25

Merged
mgovorcin merged 1 commit into
mainfrom
feat/standard-mode-only-frames
Jul 26, 2026
Merged

feat(consistent-gslc): drop frames with no standard-mode stack#25
mgovorcin merged 1 commit into
mainfrom
feat/standard-mode-only-frames

Conversation

@mgovorcin

Copy link
Copy Markdown
Collaborator

What

create-consistent now leaves out any (track, frame) whose acquisitions are all
in non-standard modes, instead of picking a winner among them. A new
--keep-nonstandard-modes flag restores the old fallback.

_common_mode_coverage returns None for such a frame, and the per-frame merge
in select_consistent_acquisitions became an inner join so those acquisitions
drop out. The CLI reports the count:

  After mode+coverage selection: 3,009 acquisitions
  Dropped 47 frames with no standard-mode acquisitions

Why

Only 4005 and 2005 are science modes. A frame seen only in 7700 or 0505
has no stack DISP-NISAR can process, so emitting one put an unusable entry into
the consistent-GSLC JSON that every downstream database then inherited —
reference dates and processing-mode labels included.

Verify

pytest tests/integration/test_consistent_gslc.py tests/regression/test_workflows.py

The regression fixture's frame (200, 300) is 7700-only: it is now absent from
the output, and a new test asserts --keep-nonstandard-modes brings it back as
7700_P.

Note for reviewers

The docs in this PR also pick up a handful of create-catalog -> create-gslc-csv
text updates from #24. Those lines live in the same files as this change and were
not worth an interactive hunk split; they are documentation strings only.

Pre-flight

pre-commit run --all-files: clean. pytest: 172 passed.

🤖 Generated with Claude Code

A frame observed only in engineering or test modes used to fall back to a
winner among those modes, which put a stack DISP-NISAR cannot process into
the output. Such frames are now left out.

--keep-nonstandard-modes restores the old fallback for inspecting what was
dropped.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@mgovorcin
mgovorcin merged commit 6f2848d into main Jul 26, 2026
4 checks passed
@mgovorcin
mgovorcin deleted the feat/standard-mode-only-frames branch July 26, 2026 18:53
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.

1 participant