feat(flomni): track measured samples and offer a P-touch label print on clear/replace #304

Merged
holler merged 2 commits from feat/flomni_ptouch into main 2026-08-19 15:41:35 +02:00
Member

Records whether a tomo scan was started/completed for the sample
currently on the stage (a new _MeasuredSampleLog, redis-backed via
BEC global vars, keyed by the packed name|owner identity so it
survives ftransfer_get_sample/put_sample moves between slots). When a
tray slot's occupant is cleared or replaced via
ftransfer_modify_storage() (CLI) or the sample-storage widget's
Clear/Change-name actions (GUI), and that sample was measured, offer
to print an account/date/samplename label via PTouchLabelPrinter.
Also surfaces measured status in ftransfer_show_all() and the
widget's slot cells, including the stage line.

GUI failures retry via QMessageBox Retry/Ignore (a modal dialog runs
its own Qt event loop, so this can't hang the process the way the
CLI's input()-based ensure_ready() would) instead of losing the label
on the first failed attempt.

Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com

Records whether a tomo scan was started/completed for the sample currently on the stage (a new _MeasuredSampleLog, redis-backed via BEC global vars, keyed by the packed name|owner identity so it survives ftransfer_get_sample/put_sample moves between slots). When a tray slot's occupant is cleared or replaced via ftransfer_modify_storage() (CLI) or the sample-storage widget's Clear/Change-name actions (GUI), and that sample was measured, offer to print an account/date/samplename label via PTouchLabelPrinter. Also surfaces measured status in ftransfer_show_all() and the widget's slot cells, including the stage line. GUI failures retry via QMessageBox Retry/Ignore (a modal dialog runs its own Qt event loop, so this can't hang the process the way the CLI's input()-based ensure_ready() would) instead of losing the label on the first failed attempt. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
holler added 1 commit 2026-08-19 15:32:12 +02:00
feat(flomni): track measured samples and offer a P-touch label print on clear/replace
CI for csaxs_bec / test (push) Failing after 1m39s
CI for csaxs_bec / test (pull_request) Failing after 1m44s
a31fe481a7
Records whether a tomo scan was started/completed for the sample
currently on the stage (a new _MeasuredSampleLog, redis-backed via
BEC global vars, keyed by the packed name|owner identity so it
survives ftransfer_get_sample/put_sample moves between slots). When a
tray slot's occupant is cleared or replaced via
ftransfer_modify_storage() (CLI) or the sample-storage widget's
Clear/Change-name actions (GUI), and that sample was measured, offer
to print an account/date/samplename label via PTouchLabelPrinter.
Also surfaces measured status in ftransfer_show_all() and the
widget's slot cells, including the stage line.

GUI failures retry via QMessageBox Retry/Ignore (a modal dialog runs
its own Qt event loop, so this can't hang the process the way the
CLI's input()-based ensure_ready() would) instead of losing the label
on the first failed attempt.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
bec_bl_push-gitea added 1 commit 2026-08-19 15:35:04 +02:00
fix(tests): stub measured_log in flomni tomo-angle test helper
CI for csaxs_bec / test (pull_request) Successful in 1m40s
Read the Docs Deploy Trigger / trigger-rtd-webhook (push) Successful in 2s
CI for csaxs_bec / test (push) Successful in 1m39s
a20be61251
make_flomni_for_golden_resume() builds a bare Flomni via object.__new__,
bypassing __init__, so it never got measured_log or a working
sample_get_measured_log_key -- both added by the measured-sample-tracking
commit for the P-touch label printer.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
holler merged commit a20be61251 into main 2026-08-19 15:41:35 +02:00
holler deleted branch feat/flomni_ptouch 2026-08-19 15:41:35 +02:00
Sign in to join this conversation.
No Reviewers
No labels
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bec/csaxs_bec#304