dora/server/server.py
def update_sampler(samplerid, uid):
    """ updates the sampler with the forward model's observation
    uid : the unique identifier provided with the query parameters

    Expects a list of the forward models outputs (s elements where s also
    equals the number of stacks in the sampler)
    """
    measurement = fl.request.json
    fl.current_app.samplers[int(samplerid)].update(uid,
                                                   np.asarray(measurement))
    response_data = "Model updated with measurement"
    return response_data, 200
 updates the sampler with the forward model's observation
    uid : the unique identifier provided with the query parameters

    Expects a list of the forward models outputs (s elements where s also
    equals the number of stacks in the sampler)
    
updates the sampler with the forward model's observation
uid : the unique identifier provided with the query parameters

Expects a list of the forward models outputs (s elements where s also
equals the number of stacks in the sampler)
updates the sampler with the forward model ' s observation uid : the unique identifier provided with the query parameters Expects a list of the forward models outputs ( s elements where s also equals the number of stacks in the sampler )
def update_sampler(samplerid, uid):
    measurement = fl.request.json
    fl.current_app.samplers[int(samplerid)].update(uid,
                                                   np.asarray(measurement))
    response_data = "Model updated with measurement"
    return response_data, 200
def update_sampler ( samplerid , uid ) : measurement = fl . request . json fl . current_app . samplers [ int ( samplerid ) ] . update ( uid , np . asarray ( measurement ) ) response_data = "Model updated with measurement" return response_data , 200
updates the sampler with the forward model's observation
uid : the unique identifier provided with the query parameters
updates the sampler with the forward model ' s observation uid : the unique identifier provided with the query parameters
""" updates the sampler with the forward model's observation
    uid : the unique identifier provided with the query parameters

    Expects a list of the forward models outputs (s elements where s also
    equals the number of stacks in the sampler)
    """
samplerid
uid