src/server/server.py
def autoUpdateCalibration():
    ''' Apply best tuning values to nodes '''
    for node_index, node in enumerate(INTERFACE.nodes):
        calibration = findBestValues(node, node_index)

        if node.enter_at_level is not calibration['enter_at_level']:
            on_set_enter_at_level({
                'node': node_index,
                'enter_at_level': calibration['enter_at_level']
            })

        if node.exit_at_level is not calibration['exit_at_level']:
            on_set_exit_at_level({
                'node': node_index,
                'exit_at_level': calibration['exit_at_level']
            })

    logger.info('Updated calibration with best discovered values')
    emit_enter_and_exit_at_levels()
 Apply best tuning values to nodes 
Apply best tuning values to nodes
Apply best tuning values to nodes
def autoUpdateCalibration():
    for node_index, node in enumerate(INTERFACE.nodes):
        calibration = findBestValues(node, node_index)
        if node.enter_at_level is not calibration['enter_at_level']:
            on_set_enter_at_level({
                'node': node_index,
                'enter_at_level': calibration['enter_at_level']
            })
        if node.exit_at_level is not calibration['exit_at_level']:
            on_set_exit_at_level({
                'node': node_index,
                'exit_at_level': calibration['exit_at_level']
            })
    logger.info('Updated calibration with best discovered values')
    emit_enter_and_exit_at_levels()
def autoUpdateCalibration ( ) : for node_index , node in enumerate ( INTERFACE . nodes ) : calibration = findBestValues ( node , node_index ) if node . enter_at_level is not calibration [ 'enter_at_level' ] : on_set_enter_at_level ( { 'node' : node_index , 'enter_at_level' : calibration [ 'enter_at_level' ] } ) if node . exit_at_level is not calibration [ 'exit_at_level' ] : on_set_exit_at_level ( { 'node' : node_index , 'exit_at_level' : calibration [ 'exit_at_level' ] } ) logger . info ( 'Updated calibration with best discovered values' ) emit_enter_and_exit_at_levels ( )
Apply best tuning values to nodes
Apply best tuning values to nodes
''' Apply best tuning values to nodes '''