Skip to content

Commit

Permalink
Merge pull request #352 from lnls-sirius/fix-ps-cycle
Browse files Browse the repository at this point in the history
Fix bugs
  • Loading branch information
anacso17 authored Jan 17, 2020
2 parents 39b146e + 35cc259 commit 1af48d7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
18 changes: 6 additions & 12 deletions siriuspy/siriuspy/csdevice/posang.py
Original file line number Diff line number Diff line change
@@ -1,23 +1,17 @@
"""Define PVs, contants and properties of PosAng SoftIOCs."""

from siriuspy.csdevice import util as _cutil
from siriuspy.namesys import SiriusPVName as _PVName


class Const:
"""Const class defining PosAng constants."""

TB_CORRH_POSANG_CHSEPT = (
_PVName('TB-04:PS-CH-1'), _PVName('TB-04:PU-InjSept'))
TB_CORRH_POSANG_CHCH = (
_PVName('TB-04:PS-CH-1'), _PVName('TB-04:PS-CH-2'))
TB_CORRV_POSANG = (
_PVName('TB-04:PS-CV-1'), _PVName('TB-04:PS-CV-2'))

TS_CORRH_POSANG = (
_PVName('TS-04:PS-CH'), _PVName('TS-04:PU-InjSeptF'))
TS_CORRV_POSANG = (
_PVName('TS-04:PS-CV-1'), _PVName('TS-04:PS-CV-2'))
TB_CORRH_POSANG_CHSEPT = ('TB-04:PS-CH-1', 'TB-04:PU-InjSept')
TB_CORRH_POSANG_CHCH = ('TB-04:PS-CH-1', 'TB-04:PS-CH-2')
TB_CORRV_POSANG = ('TB-04:PS-CV-1', 'TB-04:PS-CV-2')

TS_CORRH_POSANG = ('TS-04:PS-CH', 'TS-04:PU-InjSeptF')
TS_CORRV_POSANG = ('TS-04:PS-CV-1', 'TS-04:PS-CV-2')

STATUSLABELS = ('PS Connection', 'PS PwrState', 'PS OpMode', 'PS CtrlMode')

Expand Down
2 changes: 1 addition & 1 deletion siriuspy/siriuspy/cycle/conn.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ def set_current_zero(self):

def check_current_zero(self, wait=5):
"""Return wether power supply PS current is zero."""
return _pv_timed_get(self['rdi'].value, 0, abs_tol=0.1, wait=wait)
return _pv_timed_get(self['rdi'], 0, abs_tol=0.1, wait=wait)

def prepare(self, mode):
"""Config power supply to cycling mode."""
Expand Down

0 comments on commit 1af48d7

Please sign in to comment.