コード例 #1
0
 def est1_off_t(self, b, c):
     '''estimates how long it takes from the current state to switch
        bending power supply off, depending on cabinet state c and
        power supply state b.
     '''
     nop(c)
     return BEND_OFF_T.get(b, 0.0)
コード例 #2
0
ファイル: BrukerBend_PS.py プロジェクト: srgblnch/BrukerEC_PS
 def est1_off_t(self, b, c):
     '''estimates how long it takes from the current state to switch
        bending power supply off, depending on cabinet state c and
        power supply state b.
     '''
     nop(c)
     return BEND_OFF_T.get(b, 0.0)
コード例 #3
0
ファイル: BrukerBend_PS.py プロジェクト: srgblnch/BrukerEC_PS
 def valfun(aname, aval1, aval2):
     nop(aname)
     return (aval1+aval2) / 2
コード例 #4
0
ファイル: BrukerBend_PS.py プロジェクト: srgblnch/BrukerEC_PS
 def is_Voltage_allowed(self, write):
     nop(write)
     return not self._aWaveGeneration.value
コード例 #5
0
ファイル: BrukerBend_PS.py プロジェクト: srgblnch/BrukerEC_PS
 def shiver(self, aname, x, y):
     """Every other second x is chosen, else y
     """
     nop(aname)
     return x if int(time()) % 2 else y
コード例 #6
0
 def valfun(aname, aval1, aval2):
     nop(aname)
     return (aval1+aval2) / 2
コード例 #7
0
 def is_Voltage_allowed(self, write):
     nop(write)
     return not self._aWaveGeneration.value
コード例 #8
0
 def shiver(self, aname, x, y):
     """Every other second x is chosen, else y
     """
     nop(aname)
     return x if int(time()) % 2 else y