tango: get-setFrameTransferMode no more available from FrelonAcq class
class FrelonAcq does not have setter/getter for FrameTransferMode, and Tango.py still have code to access them via the FrelonAcq class:
@Core.DEB_MEMBER_FUNCT
def DevCcdSetKinetics(self, kinetics):
deb.Param('Setting the profile: %s' % kinetics)
if kinetics == 0:
ftm = FrelonHw.FFM
elif kinetics == 3:
ftm = FrelonHw.FTM
else:
raise Core.Exception('Invalid profile value: %s' % kinetics)
_FrelonAcq.setFrameTransferMode(ftm)
@Core.DEB_MEMBER_FUNCT
def DevCcdGetKinetics(self):
ftm = _FrelonAcq.getFrameTransferMode()
if ftm == FrelonHw.FTM:
kinetics = 3
else:
kinetics = 0
deb.Return('Getting the profile: %s' % kinetics)
return kinetics
I propose:
@Core.DEB_MEMBER_FUNCT
def DevCcdSetKinetics(self, kinetics):
deb.Param('Setting the profile: %s' % kinetics)
if kinetics == 0:
ftm = FrelonHw.FFM
elif kinetics == 3:
ftm = FrelonHw.FTM
else:
raise Core.Exception('Invalid profile value: %s' % kinetics)
_FrelonAcq.getFrelonCamera().setFrameTransferMode(ftm)
@Core.DEB_MEMBER_FUNCT
def DevCcdGetKinetics(self):
ftm = _FrelonAcq.getFrelonCamera().getFrameTransferMode()
if ftm == FrelonHw.FTM:
kinetics = 3
else:
kinetics = 0
deb.Return('Getting the profile: %s' % kinetics)
return kinetics