Exemplo n.º 1
0
 def __init__(self, moduleRow):
     self.moduleRow = moduleRow
     ValueMRow.__init__(self,
                        moduleRow,
                        'exposureState',
                        '',
                        0,
                        '{:s}',
                        controllerName='hxhal')
Exemplo n.º 2
0
 def __init__(self, moduleRow, fontSize=styles.smallFont):
     ValueMRow.__init__(self,
                        moduleRow,
                        'attenuator',
                        'attenuator',
                        0,
                        '{:g}',
                        'labsphere',
                        fontSize=fontSize)
Exemplo n.º 3
0
    def __init__(self, spsModule, roughName):
        ModuleRow.__init__(self, module=spsModule, actorName=f'{roughName}', actorLabel=f'{roughName.upper()}')

        self.warning = ValueMRow(self, 'pumpWarnings', 'Warnings', 1, '{:s}', controllerName='pump')
        self.errors = ValueMRow(self, 'pumpErrors', 'Errors', 1, '{:s}', controllerName='pump')
        self.speed = ValueMRow(self, 'pumpSpeed', 'Speed', 0, '{:g}', controllerName='pump')
        self.pressure = ValueMRow(self, 'pressure', 'Pressure(Torr)', 0, '{:g}', controllerName='gauge')

        self.controllers = Controllers(self)
        self.createDialog(RoughDialog(self))
Exemplo n.º 4
0
    def setText(self, txt):
        txt = txt.upper()
        if txt == 'READING':
            self.value.hide()
            self.readRows.show()
        else:
            self.value.show()
            self.readRows.resetValue()

        ValueMRow.setText(self, txt)
Exemplo n.º 5
0
    def setText(self, txt):

        txt = txt.upper()
        if txt in ['EXPOSING', 'OPENRED', 'OPENBLUE']:
            self.value.hide()
            self.elapsedTime.show()
        else:
            self.value.show()
            self.elapsedTime.resetValue()

        ValueMRow.setText(self, txt)
Exemplo n.º 6
0
    def __init__(self, camRow):
        self.camRow = camRow
        ModuleRow.__init__(self, module=camRow.module,
                           actorName='xcu_%s%i' % (camRow.arm, camRow.module.smId), actorLabel='XCU')

        self.cryoMode = ValueMRow(self, 'cryoMode', 'cryoMode', 0, '{:s}', controllerName='')
        self.temperature = DetectorTemp(self)
        self.pressure = ValueMRow(self, 'pressure', 'Pressure(Torr)', 0, '{:g}', controllerName='PCM')
        self.twoIonPumps = TwoIonPumps(self)
        self.controllers = Controllers(self)
        self.actorStatus.button.setEnabled(False)
Exemplo n.º 7
0
 def __init__(self, moduleRow):
     self.moduleRow = moduleRow
     ValueMRow.__init__(self,
                        moduleRow,
                        'exposureState',
                        '',
                        0,
                        '{:s}',
                        controllerName='ccd')
     self.readRows = ReadRows(moduleRow)
     self.grid.addWidget(self.readRows, 0, 0)
     self.setContentsMargins(0, 0, 0, 0)
Exemplo n.º 8
0
    def __init__(self, aitModule):
        ModuleRow.__init__(self,
                           module=aitModule,
                           actorName='breva',
                           actorLabel='BREVA')

        self.state = ValueMRow(self, 'hexaFSM', '', 0, '{:s}')
        self.substate = ValueMRow(self, 'hexaFSM', '', 1, '{:s}')
        self.motorState = MotorState(self)
        self.error = ValueMRow(self, 'error', 'ERROR', 0, '{:g}')
        self.fiberTargeted = ValueMRow(self, 'targetedFiber', 'Fiber', 0,
                                       '{:s}')
        self.createDialog(BrevaDialog(self))
Exemplo n.º 9
0
    def __init__(self, spsModule, smId):
        ModuleRow.__init__(self, module=spsModule, actorName='sps', actorLabel='SPS')
        self.smId = smId
        self.specLabel = SpecLabel(self, smId)
        self.lightSource = ValueMRow(self, f'sm{smId}LightSource', 'Light Source', 0, '{:s}')

        self.createDialog(SpsDialog(self))
Exemplo n.º 10
0
    def __init__(self, specModule):
        ModuleRow.__init__(self,
                           module=specModule,
                           actorName='enu_sm%i' % specModule.smId,
                           actorLabel='ENU')

        self.state = ValueMRow(self, 'metaFSM', '', 0, '{:s}')
        self.substate = Substate(self)

        self.rexm = ValueMRow(self,
                              'rexm',
                              'Red Resolution',
                              0,
                              '{:s}',
                              controllerName='rexm')
        self.slit = ValueMRow(self,
                              'slitPosition',
                              'Slit',
                              0,
                              '{:s}',
                              controllerName='slit')
        self.shutters = ValueMRow(self,
                                  'shutters',
                                  'Shutters',
                                  0,
                                  '{:s}',
                                  controllerName='biasha')
        self.bia = ValueMRow(self,
                             'bia',
                             'BIA',
                             0,
                             '{:s}',
                             controllerName='biasha')

        self.controllers = Controllers(self)

        self.createDialog(EnuDialog(self))
Exemplo n.º 11
0
    def __init__(self, spsModule, name='dcb'):
        ModuleRow.__init__(self, module=spsModule, actorName=name, actorLabel=name.upper())

        self.state = ValueMRow(self, 'metaFSM', '', 0, '{:s}')
        self.substate = ValueMRow(self, 'metaFSM', '', 1, '{:s}')

        self.hgar = SwitchMRow(self, 'hgar', 'Hg-Ar', 0, '{:g}', controllerName='sources')
        self.neon = SwitchMRow(self, 'neon', 'Neon', 0, '{:g}', controllerName='sources')
        self.krypton = SwitchMRow(self, 'krypton', 'Krypton', 0, '{:g}', controllerName='sources')
        self.argon = SwitchMRow(self, 'argon', 'Argon', 0, '{:g}', controllerName='sources')
        self.qth = SwitchMRow(self, 'halogen', 'QTH', 0, '{:g}', controllerName='sources')

        self.linewheel = ValueMRow(self, 'linewheel', 'Line Wheel', 1, '{:s}')
        self.qthwheel = ValueMRow(self, 'qthwheel', 'QTH Wheel', 1, '{:s}')
        self.adc1 = ValueMRow(self, 'adc', 'ADC 1', 0, '{:4f}')
        self.adc2 = ValueMRow(self, 'adc', 'ADC 2', 1, '{:4f}')

        self.rows = [RowOne(self), RowTwo(self)]

        self.controllers = Controllers(self)
        self.createDialog(DcbDialog(self))
Exemplo n.º 12
0
 def __init__(self, moduleRow):
     self.moduleRow = moduleRow
     ValueMRow.__init__(self, moduleRow, 'metaFSM', '', 1, '{:s}')
     self.elapsedTime = ElapsedTime(moduleRow)
     self.grid.addWidget(self.elapsedTime, 0, 0)
     self.setContentsMargins(0, 0, 0, 0)
Exemplo n.º 13
0
    def __init__(self, aitModule):
        ModuleRow.__init__(self,
                           module=aitModule,
                           actorName='aten',
                           actorLabel='ATEN')

        self.state = ValueMRow(self, 'metaFSM', '', 0, '{:s}')
        self.substate = ValueMRow(self, 'metaFSM', '', 1, '{:s}')

        self.labsphere = SwitchMRow(self,
                                    'labsphere',
                                    'Labsphere',
                                    0,
                                    '{:g}',
                                    controllerName='pdu')
        self.roughpump = SwitchMRow(self,
                                    'roughpump',
                                    'Rough pump',
                                    0,
                                    '{:g}',
                                    controllerName='pdu')
        self.roughpump2 = SwitchMRow(self,
                                     'roughpump2',
                                     'Rough pump 2',
                                     0,
                                     '{:g}',
                                     controllerName='pdu')
        self.regenheater = SwitchMRow(self,
                                      'regenheater',
                                      'Regen-Heater',
                                      0,
                                      '{:g}',
                                      controllerName='pdu')
        self.neon = SwitchMRow(self,
                               'neon',
                               'Neon',
                               0,
                               '{:g}',
                               controllerName='aten')
        self.xenon = SwitchMRow(self,
                                'xenon',
                                'Xenon',
                                0,
                                '{:g}',
                                controllerName='aten')
        self.hgar = SwitchMRow(self,
                               'hgar',
                               'Hg-Ar',
                               0,
                               '{:g}',
                               controllerName='aten')
        self.krypton = SwitchMRow(self,
                                  'krypton',
                                  'Krypton',
                                  0,
                                  '{:g}',
                                  controllerName='aten')
        self.argon = SwitchMRow(self,
                                'argon',
                                'Argon',
                                0,
                                '{:g}',
                                controllerName='aten')
        self.deuterium = SwitchMRow(self,
                                    'deuterium',
                                    'Deuterium',
                                    0,
                                    '{:g}',
                                    controllerName='aten')

        self.qth = SwitchMRow(self,
                              'halogen',
                              'QTH',
                              0,
                              '{:g}',
                              controllerName='labsphere')
        self.photodiode = ValueMRow(self,
                                    'photodiode',
                                    'photodiode',
                                    0,
                                    '{:g}',
                                    controllerName='labsphere')
        self.attenuator = AttenuatorValue(self, fontSize=styles.bigFont)

        self.rows = [RowOne(self), RowTwo(self)]

        self.controllers = Controllers(self)
        self.createDialog(AtenDialog(self))
Exemplo n.º 14
0
 def setText(self, txt):
     txt = txt.upper()
     ValueMRow.setText(self, txt)
Exemplo n.º 15
0
 def __init__(self, moduleRow):
     ValueMRow.__init__(self, moduleRow, 'temps', 'Temperature(K)', 10, '{:g}', controllerName='temps')