Skip to content
Snippets Groups Projects

DetectorAssembler: go to ERROR if trying to match without geometry

Merged David Hammer requested to merge detectorassembler-error-without-geometry into master

#48 (closed) this came up again recently, let's do something about it.

  • geometry is a property again, so if geometry device is up, we don't even need to wait for signal to get it
  • DRY a bit by putting utility to get property + connect to signal in calngUtils
  • start warning harder if no geometry

Options:

  1. stay in INIT until we get geometry
  2. go to ERROR after some timeout if we don't get geometry
  3. go to ERROR in match handler if we don't have geometry by the time we need it (current implementation)

As the diff shows, at least for option 3, we need to fight the TrainMatcher state logic a bit; it's going from PASSIVE to CHANGING to ACTIVE outside of the methods we're currently overriding. State transitions for an assembler started while geometry device is down and then geometry device comes up later:

2024-09-18T13_24_35.754475_image

Merge request reports

Approval is optional

Merged by David HammerDavid Hammer 5 months ago (Sep 20, 2024 3:09pm UTC)

Merge details

  • Changes merged into master with cf5eece4 (commits were squashed).
  • Did not delete the source branch.

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading