(key, value)
return value
Convert value to a SimulatorSetup
Convert value to a SimulatorSetup
Convert value to a SimulatorSetup
def _prepare_for_simulator_setup(key, value):
    """Convert value to a SimulatorSetup"""
    if key == "attached_instruments" and value:
        return {Mount[mount.upper()]: data for (mount, data) in value.items()}
    if key == "config" and value:
        return robot_configs.build_config(value)
    if key == "attached_modules" and value:
        return {k: [ModuleCall(**data) for data in v] for (k, v) in value.items()}
    return value
def _prepare_for_simulator_setup ( key , value ) : if key == "attached_instruments" and value : return { Mount [ mount . upper ( ) ] : data for ( mount , data ) in value . items ( ) } if key == "config" and value : return robot_configs . build_config ( value ) if key == "attached_modules" and value : return { k : [ ModuleCall ( * * data ) for data in v ] for ( k , v ) in value . items ( ) } return value