reorganized channels and shutter
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
from loguru import logger
|
||||
|
||||
from slic.devices.xoptics.aramis_attenuator import Attenuator
|
||||
from slic.devices.xoptics.pulsepicker import PulsePicker
|
||||
from slic.devices.xdiagnostics.intensitymonitor import IntensityMonitorPBPS
|
||||
@ -12,8 +14,18 @@ from .pp_shutter import PP_Shutter
|
||||
upstream_attenuator = Attenuator("SARFE10-OATT053", description="Aramis attenuator OATT053")
|
||||
attenuator = Attenuator("SAROP31-OATA150", description="Cristallina attenuator OATA150")
|
||||
|
||||
def test_attenuators():
|
||||
for att in (upstream_attenuator, attenuator):
|
||||
tfundamental = att.get_transmission()
|
||||
try:
|
||||
assert tfundamental > 0
|
||||
except TypeError:
|
||||
logger.warning("No transmission value reported from {att.ID}")
|
||||
|
||||
test_attenuators()
|
||||
|
||||
# Shutter
|
||||
shutter = PP_Shutter(
|
||||
pp_shutter = PP_Shutter(
|
||||
"SARES30-LTIM01-EVR0:RearUniv0-Ena-SP", name="Cristallina pulse picker shutter"
|
||||
) # Shutter button when using the pulse picker
|
||||
|
||||
|
Reference in New Issue
Block a user