flo-schu / pymob

Python model building platform
MIT License
0 stars 0 forks source link

Improve data structure of config files #59

Open flo-schu opened 3 months ago

flo-schu commented 3 months ago

The data structure expects by default the following directory structure:

# project_directory (working directory)
#  ├─ case_studies
#  │   ├─ test_case_study
#  │   │   ├─ scenarios
#  │   │   │   ├─ test_scenario
#  │   │   │   │   └─ settings.cfg
#  │   |   |   └─ test_scenario_2
#  │   │   │   │   └─ settings.cfg
#  |   |   ├─ sim.py

It is possible to run a case-study in a standalone way, by navigating inside the case-study directory and initializing the case study like this

sim = SimulationBase()
sim.config.case_study.name = "."
sim.config.case_study.scenario = "test_scenario_standalone"
sim.config.case_study.package = "."