fix: remove old mcs card from config
This commit is contained in:
@@ -27,20 +27,20 @@ mokev:
|
|||||||
onFailure: buffer
|
onFailure: buffer
|
||||||
readoutPriority: baseline
|
readoutPriority: baseline
|
||||||
softwareTrigger: false
|
softwareTrigger: false
|
||||||
mcs:
|
# mcs:
|
||||||
description: Mcs scalar card for transmission readout
|
# description: Mcs scalar card for transmission readout
|
||||||
deviceClass: csaxs_bec.devices.epics.mcs_csaxs.MCScSAXS
|
# deviceClass: csaxs_bec.devices.epics.mcs_csaxs.MCScSAXS
|
||||||
deviceConfig:
|
# deviceConfig:
|
||||||
prefix: 'X12SA-MCS:'
|
# prefix: 'X12SA-MCS:'
|
||||||
mcs_config:
|
# mcs_config:
|
||||||
num_lines: 1
|
# num_lines: 1
|
||||||
deviceTags:
|
# deviceTags:
|
||||||
- cSAXS
|
# - cSAXS
|
||||||
- mcs
|
# - mcs
|
||||||
onFailure: buffer
|
# onFailure: buffer
|
||||||
enabled: true
|
# enabled: true
|
||||||
readoutPriority: monitored
|
# readoutPriority: monitored
|
||||||
softwareTrigger: false
|
# softwareTrigger: false
|
||||||
eiger9m:
|
eiger9m:
|
||||||
description: Eiger9m HPC area detector 9M
|
description: Eiger9m HPC area detector 9M
|
||||||
deviceClass: csaxs_bec.devices.epics.eiger9m_csaxs.Eiger9McSAXS
|
deviceClass: csaxs_bec.devices.epics.eiger9m_csaxs.Eiger9McSAXS
|
||||||
|
|||||||
@@ -41,13 +41,11 @@ class READYTOREAD(int, enum.Enum):
|
|||||||
class BPMDevice(Device):
|
class BPMDevice(Device):
|
||||||
"""Class for BPM device of the MCSCard."""
|
"""Class for BPM device of the MCSCard."""
|
||||||
|
|
||||||
current1 = Cpt(Signal, name="current1", kind=Kind.normal, doc="Normalized current 1")
|
current1 = Cpt(Signal, kind=Kind.normal, doc="Normalized current 1")
|
||||||
current2 = Cpt(Signal, name="current2", kind=Kind.normal, doc="Normalized current 2")
|
current2 = Cpt(Signal, kind=Kind.normal, doc="Normalized current 2")
|
||||||
current3 = Cpt(Signal, name="current3", kind=Kind.normal, doc="Normalized current 3")
|
current3 = Cpt(Signal, kind=Kind.normal, doc="Normalized current 3")
|
||||||
current4 = Cpt(Signal, name="current4", kind=Kind.normal, doc="Normalized current 4")
|
current4 = Cpt(Signal, kind=Kind.normal, doc="Normalized current 4")
|
||||||
count_time = Cpt(
|
count_time = Cpt(Signal, kind=Kind.normal, doc="Count time for bpm signal counts")
|
||||||
Signal, name="count_time", kind=Kind.normal, doc="Count time for bpm signal counts"
|
|
||||||
)
|
|
||||||
sum = Cpt(SumSignal, kind="hinted", doc="Sum of all currents")
|
sum = Cpt(SumSignal, kind="hinted", doc="Sum of all currents")
|
||||||
x = Cpt(
|
x = Cpt(
|
||||||
DiffXYSignal,
|
DiffXYSignal,
|
||||||
@@ -72,11 +70,11 @@ class BPMDevice(Device):
|
|||||||
class MCSRaw(Device):
|
class MCSRaw(Device):
|
||||||
"""Class for BPM device of the MCSCard with normalized currents."""
|
"""Class for BPM device of the MCSCard with normalized currents."""
|
||||||
|
|
||||||
mca1 = Cpt(Signal, name="current1", kind=Kind.normal, doc="Raw counts on mca1 channel")
|
mca1 = Cpt(Signal, kind=Kind.normal, doc="Raw counts on mca1 channel")
|
||||||
mca2 = Cpt(Signal, name="current2", kind=Kind.normal, doc="Raw counts on mca2 channel")
|
mca2 = Cpt(Signal, kind=Kind.normal, doc="Raw counts on mca2 channel")
|
||||||
mca3 = Cpt(Signal, name="current3", kind=Kind.normal, doc="Raw counts on mca3 channel")
|
mca3 = Cpt(Signal, kind=Kind.normal, doc="Raw counts on mca3 channel")
|
||||||
mca4 = Cpt(Signal, name="current4", kind=Kind.normal, doc="Raw counts on mca4 channel")
|
mca4 = Cpt(Signal, kind=Kind.normal, doc="Raw counts on mca4 channel")
|
||||||
mca5 = Cpt(Signal, name="current5", kind=Kind.normal, doc="Raw counts on mca5 channel")
|
mca5 = Cpt(Signal, kind=Kind.normal, doc="Raw counts on mca5 channel")
|
||||||
|
|
||||||
|
|
||||||
class MCSCardCSAXS(PSIDeviceBase, MCSCard):
|
class MCSCardCSAXS(PSIDeviceBase, MCSCard):
|
||||||
@@ -87,7 +85,6 @@ class MCSCardCSAXS(PSIDeviceBase, MCSCard):
|
|||||||
|
|
||||||
ready_to_read = Cpt(
|
ready_to_read = Cpt(
|
||||||
Signal,
|
Signal,
|
||||||
name="ready_to_read",
|
|
||||||
kind=Kind.omitted,
|
kind=Kind.omitted,
|
||||||
doc="Signal that indicates if mcs card is ready to be read from after triggers. 0 not ready, 1 ready",
|
doc="Signal that indicates if mcs card is ready to be read from after triggers. 0 not ready, 1 ready",
|
||||||
)
|
)
|
||||||
@@ -180,7 +177,6 @@ class MCSCardCSAXS(PSIDeviceBase, MCSCard):
|
|||||||
mca_raw = getattr(self.mcs, signal.name.split("_")[-1], None)
|
mca_raw = getattr(self.mcs, signal.name.split("_")[-1], None)
|
||||||
if mca_raw is None:
|
if mca_raw is None:
|
||||||
return
|
return
|
||||||
logger.info(f"Received update of type {type(value)} for {signal.name}")
|
|
||||||
if isinstance(value, np.ndarray):
|
if isinstance(value, np.ndarray):
|
||||||
mca_raw.put(value.tolist())
|
mca_raw.put(value.tolist())
|
||||||
if mapped_signal_name == "count_time":
|
if mapped_signal_name == "count_time":
|
||||||
|
|||||||
Reference in New Issue
Block a user