revert commits done before MZ holidays
they are all not neccessary for SINQ SE operation Change-Id: Ic9adcccf685752ab90bb6b86005ac8e04b302855
This commit is contained in:
@ -354,7 +354,7 @@ class Cryostat(CryoBase):
|
||||
timestamp = t
|
||||
self.read_value()
|
||||
|
||||
def shutdownModule(self):
|
||||
def shutdown(self):
|
||||
# should be called from server when the server is stopped
|
||||
self._stopflag = True
|
||||
if self._thread and self._thread.is_alive():
|
||||
|
@ -24,33 +24,10 @@
|
||||
import random
|
||||
|
||||
from frappy.datatypes import FloatRange, StringType, ValueType, TupleOf, StructOf, ArrayOf
|
||||
from frappy.modules import Communicator, Drivable, Parameter, Property, Readable, Module, Attached
|
||||
from frappy.modules import Communicator, Drivable, Parameter, Property, Readable, Module
|
||||
from frappy.params import Command
|
||||
from frappy.dynamic import Pinata
|
||||
from frappy.errors import RangeError
|
||||
|
||||
class Pin(Pinata):
|
||||
def scanModules(self):
|
||||
yield ('pin_a', {'cls': LN2, 'description':'hi'})
|
||||
yield ('pin_b', {'cls': LN2, 'description':'hi'})
|
||||
|
||||
class RecPin(Pinata):
|
||||
def scanModules(self):
|
||||
yield ('rec_a', {'cls': RecPinInner, 'description':'hi'})
|
||||
yield ('rec_b', {'cls': RecPinInner, 'description':'hi'})#, 'idx':'_2'})
|
||||
|
||||
class RecPinInner(Pinata):
|
||||
idx = Property('', StringType(), default='')
|
||||
def scanModules(self):
|
||||
yield ('pin_pin_a' + self.idx, {'cls': Mapped, 'description':'recursive!', 'choices':['A', 'B']})
|
||||
yield ('pin_pin_b' + self.idx, {'cls': Mapped, 'description':'recursive!', 'choices':['A', 'B']})
|
||||
|
||||
|
||||
class WithAtt(Readable):
|
||||
att = Attached()
|
||||
|
||||
def read_value(self):
|
||||
return self.att.read_value()
|
||||
|
||||
class LN2(Readable):
|
||||
"""Just a readable.
|
||||
|
Reference in New Issue
Block a user