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:
@ -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()
|
||||
'''
|
||||
|
Reference in New Issue
Block a user