Skip to content

Feature: callback in orbit reading #491

Open

Description

@simoneliuzzo

Description, motivation and use case
trigger injection before orbit reading (for example for Transferline use or for triggered turn by turn data acquisition)

Proposed solution


def trajectory_callback(action: int, cb_data) -> bool:
    from pyaml.common.constants import Action
    if action == Action.INIT:
        print("INIT")
    elif action == Action.BeforeMEASURE:
        print("BeforeMEASURE")
        trigger_injection()
    elif action == Action.RESTORE:
        print("RESTORE")
    return True

th0 = TL2.diagnostic.bpms(callback=trajectory_callback).BPMS.h.get()

or at control system / simulator level if easier

Checklist

  • I've assigned this issue to a project
  • I've @-mentioned relevant people

Activity

  1. added this to the ESRF Workshop milestone on Oct 30, 2026
  2. kparasch commented on Nov 23, 2026

    @kparasch
    Member

    Partly solved in #495 :

    Callbacks before orbit reading (with Action.BEFORE_BPM_READING) where implemented for Dispersion, Orbit, OrbitResponseMatrix tools.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions