Skip to content

Update EventMonitor logging for continuous and night time only capture modes#813

Merged
dvida merged 6 commits intoCroatianMeteorNetwork:prereleasefrom
g7gpr:feature/captureDuration/continuous_and_night_time
Mar 9, 2026
Merged

Update EventMonitor logging for continuous and night time only capture modes#813
dvida merged 6 commits intoCroatianMeteorNetwork:prereleasefrom
g7gpr:feature/captureDuration/continuous_and_night_time

Conversation

@g7gpr
Copy link
Copy Markdown
Contributor

@g7gpr g7gpr commented Feb 3, 2026

EventMonitor logs the start time, time until and duration of capture. If continuous capture mode is selected, this logging would be wrong, because EventMonitor is not aware of continuous capture mode.

This PR adds keyword arguments to captureDuration so that the capture mode can be specified, or a specific sun angle on the horizon.

It makes small changes to the logging, for readability.

It modifies requirements.txt for compatibility with the latest version of pip.

@g7gpr
Copy link
Copy Markdown
Contributor Author

g7gpr commented Feb 3, 2026

On test on au001a

@g7gpr g7gpr requested review from Cybis320 and dvida February 3, 2026 04:21
@g7gpr g7gpr marked this pull request as ready for review February 4, 2026 06:43
@dvida dvida requested a review from Copilot February 13, 2026 19:39
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates EventMonitor to correctly handle continuous and night-time-only capture modes when logging capture start times and durations. Previously, EventMonitor was unaware of continuous capture mode, leading to incorrect logging.

Changes:

  • Modified captureDuration() to accept continuous_capture and sun_angle parameters to specify different sun angle thresholds
  • Updated EventMonitor logging to distinguish between continuous and night-time-only capture modes
  • Fixed requirements.txt for pip compatibility by removing deprecated egg syntax from git URL

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 12 comments.

File Description
requirements.txt Simplified imreg_dft git URL by removing deprecated #egg= syntax and version constraint for modern pip compatibility
RMS/CaptureDuration.py Added continuous_capture and sun_angle keyword parameters; added test/demo code in __main__ block; includes new imports and constants
RMS/EventMonitor.py Updated captureDuration() call to pass continuous_capture parameter; improved logging format and added messages for continuous capture mode; added unused numpy import

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread RMS/CaptureDuration.py Outdated
Comment thread RMS/CaptureDuration.py Outdated
Comment thread RMS/CaptureDuration.py Outdated
Comment thread RMS/CaptureDuration.py
Comment thread RMS/CaptureDuration.py Outdated
Comment thread RMS/EventMonitor.py Outdated
Comment thread RMS/CaptureDuration.py Outdated
Comment thread RMS/CaptureDuration.py Outdated
Comment thread RMS/CaptureDuration.py Outdated
Comment thread RMS/CaptureDuration.py Outdated
@dvida dvida merged commit 3985f2b into CroatianMeteorNetwork:prerelease Mar 9, 2026
dvida added a commit that referenced this pull request Mar 10, 2026
…_and_night_time

Update EventMonitor logging for continuous and night time only capture modes
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.

3 participants