Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content

Improve falcon intregration

appel_c requested to merge feat/improve_falcon_intregration into main

Description

This MR improves the integration of dxp devices (i.e. Falcon, xMAP and Mercury). A minor fix in the device_server was needed since components with lazy=True attribute created a raise condition in the get_device_info(). A pending MR fixes this issue (bec!877).

Related Issues

relates to superxas_bec#1 (closed) closes #101 (closed)

Type of Change

  • changed Kind attributes for rois of EpicsMCARecord
  • added input/output_count_rate to EpicsDXPFalcon
  • added _default_read_attr and _default_configuration_attr to Falcon, xMAP and Mercury; children inheriting from these classes may be initiated like this:
from ophyd_devices.devices.dxp import EpicsDXPFalcon, EpicsMCARecord, Falcon

class FalconControl(Falcon):
    """Falcon Control class at SuperXAS. prefix: 'X10DA-SITORO:'"""

    _default_read_attrs = Falcon._default_read_attrs + (
        "dxp1",
        "mca1",
    )
    _default_configuration_attrs = Falcon._default_configuration_attrs + (
        "dxp1",
        "mca1",
        )
    # DXP parameters
    dxp1 = Cpt(EpicsDXPFalcon, "dxp1:")
    # dxp2 = Cpt(EpicsDXPFalcon, "dxp2:")
    # MCA record with spectrum data
    mca1 = Cpt(EpicsMCARecord, "mca1")
    # mca2 = Cpt(EpicsMCARecord, "mca2")

Definition of Done

  • Documentation is up-to-date.
Edited by appel_c

Merge request reports

Loading