top-sim / topsim

TopSim is a telescope observation and data post-processing simulator, based on a fork of Robert Lexis' CloudSimPy
MIT License
3 stars 3 forks source link

Simulation may now produce output as a pkl or as a dataframe. This al… #12

Closed myxie closed 3 years ago

myxie commented 3 years ago

…lows for each simulation to be added to a global dataframe when running multiple simulations.

myxie commented 3 years ago

Simulation.run() now returns a pandas.DataFrame with simulation results if to_file=False (default) in the Simulation.__init__.

This allows for the following structure when running multiple experiments:


global_sim = pd.DataFrame()
for dm in list_of_delay_models:
    for planning_algorithm in  list_of_algorithms:
        for config in list_of_config_files:
            simulation = Simulation(.....)
            sim, tasks = simulation.run()
            global_sim.append(sim)

plot(global_sim).... 
```python

See `thesis_experiments` repository for uses of this approach in the jupyter notebook.