[WIP] add superfrappy changes
this is work in progress Change-Id: I6474494bfc9d92ae176b8db80ea408985a0a7130
This commit is contained in:
@@ -259,7 +259,7 @@ class SuperFrappy(HasIO, Readable):
|
||||
marcheport = Property('marche port number', porttype, default=8124)
|
||||
is_main_instrument = Property('this is the main instrument', BoolType(), default=True)
|
||||
value = Parameter('running servers', ArrayOf(secnodetype), default=())
|
||||
instance = Parameter('"main" or <instrument>', StringType())
|
||||
instance = Parameter('"this" or <instrument>', StringType())
|
||||
nicos_setups = Parameter('active nicos se setups', ArrayOf(StringType()))
|
||||
_marche = None
|
||||
_secnodes = None # dict <host_post> of SecNode
|
||||
|
||||
@@ -150,9 +150,9 @@ class FrappyMarche(MarcheControl):
|
||||
section = dict(parser['superfrappy'])
|
||||
except KeyError:
|
||||
raise ValueError(f'bad config {gencfg}')
|
||||
self.instance = instance # 'main' or an instrument on a generic computer
|
||||
self.instance = instance # 'this' or an instrument on a generic computer
|
||||
instrument = section.get('instrument', instance)
|
||||
if instrument == 'main':
|
||||
if instrument == 'this':
|
||||
instrument = socket.gethostname().split('.')[0]
|
||||
print(instance, instrument)
|
||||
self.instrument = instrument # the instrument name
|
||||
|
||||
Reference in New Issue
Block a user