[Feature] Create scenario in run method just before simulation run is started see #80
Problem
A rover simulation is defined by a *.ini file, *.scenario file and several *.xml files. Currently, the entire directory and its sub-directories is copied.
This procedure can lead to space disk problems caused by the high number of files generated.
- All necessary simulations are copied using
VariationBase()
. This produces a large amount of files (problem!) - Then all simulation are started using
VariationBase().run()
.
setup = VariationBase()
setup.run()
- The simulation directory is removed after the simulation run has finished.
Idea
- A simulation is copied just before it is started.
- The simulation directory is removed after the simulation run has finished.
I would like to solve this problem by removing
request_item_list = self.scenario_creation(njobs)
from the VariationBase
constructor method and move it into a new method prepare_all_runs()
.
The old behavior is achieved by:
setup = VariationBase()
setup.prepare_all_runs()
setup.run()
The new behavior is achieved by:
setup = VariationBase()
setup.prepare_and_run()
Alternative:
Only use the new behavior and do not allow the old behavior.
Discussion
- Any other solutions?
- What to do best?