Skip to content

Commit

Permalink
adapted to new Bliss project (replaces by Emotion and Khoros)
Browse files Browse the repository at this point in the history
  • Loading branch information
blissadm@id30_massif3 committed Jan 20, 2016
1 parent b07de26 commit e187933
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions EmotionMotorWPositions.py → BlissMotorWPositions.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
from EmotionMotor import EmotionMotor
from BlissMotor import BlissMotor
import math
import logging
import time
import gevent
import types

class EmotionMotorWPositions(EmotionMotor):
class BlissMotorWPositions(BlissMotor):
def __init__(self, name):
EmotionMotor.__init__(self, name)
BlissMotor.__init__(self, name)

def init(self):
EmotionMotor.init(self)
BlissMotor.init(self)

self.predefinedPositions = {}
self.predefinedPositionsNamesList = []
Expand All @@ -37,7 +37,7 @@ def getPositionsData(self):
return self["positions"]

def connectNotify(self, signal):
EmotionMotor.connectNotify(self, signal)
BlissMotor.connectNotify(self, signal)

if signal == 'predefinedPositionChanged':
positionName = self.getCurrentPositionName()
Expand All @@ -56,9 +56,9 @@ def sortPredefinedPositionsList(self):
self.predefinedPositionsNamesList.sort(lambda x, y: int(round(self.predefinedPositions[x] - self.predefinedPositions[y])))

def updateState(self, state=None):
EmotionMotor.updateState(self, state)
BlissMotor.updateState(self, state)

if self.motorState==EmotionMotor.READY:
if self.motorState==BlissMotor.READY:
pos = self.getPosition()

for positionName in self.predefinedPositions:
Expand Down
8 changes: 4 additions & 4 deletions ESRF/ID30Controller.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from Khoros import Khoros
from Bliss import Bliss

class ID30Controller(Khoros):
class ID30Controller(Bliss):
def __init__(self, *args):
Khoros.__init__(self, *args)
Bliss.__init__(self, *args)

def init(self, *args):
Khoros.init(self)
Bliss.init(self)

def set_diagfile(self, diagfile):
self.minidiff.diagfile = diagfile
Expand Down

0 comments on commit e187933

Please sign in to comment.