Batch_Run begins, performs no iterations, no errors, writes empty .csv file. Help? #2105
-
Hello MESA community. I've been slamming my head against the wall with this for a while and I am seeking help. My model runs fine when I launch it into the GUI with run.py like any other MESA model. However, as I scale up and pursue parameter optimization, I need to leave the GUI behind and perform batch runs. The model is on EVs in Fairfax County and the basic structure of the model is as follows:
Running batch_run.py produces no errors, but the progress display only shows Thank you to this amazing community. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
That's because the |
Beta Was this translation helpful? Give feedback.
The issue was initializing
params
for the batch_run with"loaded_ids": []
. In the model I initialize an empty list to track IDs loaded from network structures. I built my initialparams
based on themesa.Model
init:However, loading the empty list in
params
caused the error I initially posted about. The manner in which the terminal closed out, seemingly starting the iterations but not running, nor providing any python erro…