[WIP] add superfrappy changes

this is work in progress

Change-Id: I6474494bfc9d92ae176b8db80ea408985a0a7130
This commit is contained in:
2026-04-21 14:00:06 +02:00
parent 10e730822e
commit e1d163b878
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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
+2 -2
View File
@@ -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