uaf-arctic-eco-modeling / dvm-dos-tem

A process based Dynamic Vegetation, Dynamic Organic Soil, Terrestrial Ecosystem Model.
MIT License
22 stars 24 forks source link

fix/improve error handling in SA_setup_and_run.py #647

Open tobeycarman opened 10 months ago

tobeycarman commented 10 months ago

The error handling and reporting is not particularly helpful in SA_setup_and_run.py. For example a bug in the setup_multi(...) function call that prevented the directories from being setup resulted in a basic message to the user ("oops setup failed"), but the program does not crash (due to the try/except on ValueError in SA_setup_and_run.py) and then later, when trying to carry out individual model run, an different exception is raised about a directory not existing.

Overall a more coherent strategy needs to be employed.