Skip to content

Make night product failures visible and improve tool discoverability#924

Open
dvida wants to merge 2 commits into
prereleasefrom
night-error-visibility
Open

Make night product failures visible and improve tool discoverability#924
dvida wants to merge 2 commits into
prereleasefrom
night-error-visibility

Conversation

@dvida

@dvida dvida commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Summary

  • RMS/Reprocess.py: promotes the exception handlers around night product generation (calibration report, observation summary, timelapse, flat, shower association, FOV KML, flux files, field sums, FT archiving, config audit, timestamp plot) from log.debug to log.warning. When the "did my night work?" artifacts fail to generate, the failure now reaches the uploaded night logs instead of being silently swallowed at debug level.
  • RMS/ConfigReader.py: routes validation warnings through logging instead of print() (FPS clamp, FOV check, jpg/png quality ranges, binning factor/method, band ratios, upload disabled on the default XX0001 station code), so they land in the night logs with a level and timestamp.
  • Utils/FRbinViewer.py: on-screen key legend (SPACE pause | 1 prev file | 2 next line | q quit), toggled with h. The keys were previously only visible in the --help epilog.
  • Utils/README.md: new section cataloging the runnable RMS/ pipeline modules (StartCapture, Reprocess, DetectStarsAndMeteors, ...), which were previously undocumented there.

Testing

  • Config load with warnings confirmed to emit through the root logger (visible pre- and post-initLogging)
  • python -m Utils.FRbinViewer -h shows the updated key mapping; legend drawing uses the existing addTextToImage overlay path
  • All touched files compile; unit tests pass

🤖 Generated with Claude Code

Promote the exception handlers around night product generation in
Reprocess (calibration report, observation summary, timelapse, flat,
shower association, FOV KML, flux files, field sums, FT archiving,
config audit, timestamp plot) from log.debug to log.warning so failures
reach the uploaded night logs instead of being silently swallowed.

Route ConfigReader validation warnings (FPS clamp, FOV check, jpg/png
ranges, binning factor/method, band ratios, upload disabled on the
default station code) through logging instead of print(), so they also
land in the night logs with a level and timestamp.

Add an on-screen key legend to FRbinViewer (toggled with 'h') - the
keys were previously only documented in the --help epilog.

Document the runnable RMS/ pipeline modules in Utils/README.md, which
previously only cataloged the Utils/ scripts.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 50500de2c0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Utils/README.md Outdated
ArchiveDetections, UploadManager, DownloadPlatepar, and
CaptureModeSwitcher have hardcoded test stubs in their __main__ blocks
rather than user CLIs, so following the README could trigger unintended
test file/network operations. Mark them as internal instead.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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