simulation.py
def _run_simulation(simulation, sid = None, full_results = True):
    """ Helper function for Parralel computation of several simulations.
    Returns list of dictionaries of results for a particular simulation with id and policy
    type added
    """
    simulation.run()
    if full_results:
        result = simulation.results
    else:
        result = [simulation.results[-1]]
    # put simulation identifier
    for step_results in result:
        step_results.update({'id':sid,
                          'policyType': simulation.policy.__class__.__name__,
                          })
    return result
 Helper function for Parralel computation of several simulations.
    Returns list of dictionaries of results for a particular simulation with id and policy
    type added
    
Helper function for Parralel computation of several simulations.
Returns list of dictionaries of results for a particular simulation with id and policy
type added
Helper function for Parralel computation of several simulations . Returns list of dictionaries of results for a particular simulation with id and policy type added
def _run_simulation(simulation, sid = None, full_results = True):
    simulation.run()
    if full_results:
        result = simulation.results
    else:
        result = [simulation.results[-1]]
    for step_results in result:
        step_results.update({'id':sid,
                          'policyType': simulation.policy.__class__.__name__,
                          })
    return result
def _run_simulation ( simulation , sid = None , full_results = True ) : simulation . run ( ) if full_results : result = simulation . results else : result = [ simulation . results [ - 1 ] ] for step_results in result : step_results . update ( { 'id' : sid , 'policyType' : simulation . policy . __class__ . __name__ , } ) return result
Helper function for Parralel computation of several simulations.
Helper function for Parralel computation of several simulations .
""" Helper function for Parralel computation of several simulations.
    Returns list of dictionaries of results for a particular simulation with id and policy
    type added
    """ # put simulation identifier
simulation
sid
full_results