Skip to content

imager: Save interrupted in metadata#966

Merged
sonnyp merged 8 commits into
mainfrom
fix/acq-nb-frame-and-interrupted-flag
May 13, 2026
Merged

imager: Save interrupted in metadata#966
sonnyp merged 8 commits into
mainfrom
fix/acq-nb-frame-and-interrupted-flag

Conversation

@babo989
Copy link
Copy Markdown
Collaborator

@babo989 babo989 commented May 12, 2026

No description provided.

…tadata

- imager: write acq_nb_frame (actuals from routine.progress) instead of
  nb_frame, and drop any stale nb_frame the imaging-command request count
  leaked into the merged metadata dict. Default configs (v2.6, v3.0)
  renamed to match Node-RED globals, which already use acq_nb_frame.
- segmenter: when a run is interrupted (_interrupt_requested), persist
  "interrupted": true into the acquisition's metadata.json so the
  dashboard can distinguish a partial segmentation from a clean one.
- lib/db.js: fix "interupted" -> "interrupted" typo on both the
  metadata key it reads and the field it returns (no other consumers
  reference the misspelling).

Closes the writer half of fairscope/PlanktoScope3#337.
Comment thread lib/db.js
Comment thread default-configs/v2.6.config.json Outdated
Comment thread default-configs/v3.0.config.json Outdated
Comment thread segmenter/planktoscope/segmenter/__init__.py Outdated
@sonnyp sonnyp changed the title imager+segmenter: record actual frame count and interrupt state in me… imager: Save interrupted in metadata May 13, 2026
@sonnyp sonnyp merged commit dd6e87d into main May 13, 2026
1 check passed
@sonnyp sonnyp deleted the fix/acq-nb-frame-and-interrupted-flag branch May 13, 2026 13:34
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.

2 participants