converter for creating python config files

+ testmode in server returns errors
+ fix in (old) statemachine

Change-Id: Icdfd6c3d8f70e717fecd61e8a54adad326be6000
This commit is contained in:
2023-01-20 15:36:52 +01:00
parent 68b45978a7
commit b19a8c2e5c
3 changed files with 180 additions and 3 deletions

View File

@@ -31,7 +31,8 @@ from secop.modules import Command, Drivable, Parameter
# test custom property (value.test can be changed in config file)
from secop.properties import Property
Parameter.propertyDict['test'] = Property('A Property for testing purposes', StringType(), default='', export=True)
class TestParameter(Parameter):
test = Property('A Property for testing purposes', StringType(), default='', export=True)
class CryoBase(Drivable):
@@ -73,7 +74,7 @@ class Cryostat(CryoBase):
target = Parameter("target temperature",
datatype=FloatRange(0), default=0, unit="K",
readonly=False,)
value = Parameter("regulation temperature",
value = TestParameter("regulation temperature",
datatype=FloatRange(0), default=0, unit="K",
test='TEST')
pid = Parameter("regulation coefficients",