added frappy_config to frappy setup

frappy_config allows to configure how SE aliases are generated
set_se_list applies this to create aliases and update the envrionment
This commit is contained in:
2022-04-20 12:06:58 +02:00
parent 80d81d72ae
commit 1d39bd162b
3 changed files with 105 additions and 30 deletions

View File

@ -3,14 +3,17 @@ group = 'optional'
modules = ['nicos_sinq.frappy_sinq.commands']
devices = {
'temperature': device('nicos.devices.generic.DeviceAlias'),
'magfield': device('nicos.devices.generic.DeviceAlias'),
}
alias_config = {
'temperature': {'se_ts': 110, 'se_tt': 100},
'magfield': {'se_mf': 100},
}
devices = dict(
frappy_config = device(
'nicos_sinq.frappy_sinq.devices.FrappyConfig',
visibility = [],
nodes = ['se_main', 'se_stick', 'se_addons'],
# T will be either a SECoP module with property meaning=tmperature or one of the keys in the dict
temperature = ['T', {'se_ts': 120, 'se_tt': 100}],
temperature_regulation = ['Tr', {'se_tm': 110, 'se_tv': 100}],
magneticfield = ['B', {'se_mf': 100}],
)
)
startupcode = '''
printinfo("=======================================================================================")
@ -23,4 +26,5 @@ printinfo(" frappy_stick('') # remove stick")
printinfo(" frappy_main('') # remove main SE apparatus")
printinfo(" frappy_main() # show the current SE configuration")
printinfo("=======================================================================================")
set_se_list()
'''