geanders / futureheatwaves

Functions to Identify and Characterize Heatwaves in Climate Projections
3 stars 0 forks source link

Add function to run only a subset of models in a directory #77

Closed geanders closed 8 years ago

geanders commented 8 years ago

It would be nice to be able to run only a select few models, rather than having to re-run every model every time. For example, when I kill the code, and then come back to running it - I don't want to repeat. My suggestion would be to have the code look to see if the final output file (with the correct naming and directory structure) already exists. If is does, there could be an input paramater saying whether to rewrite the file or move on.

geanders commented 8 years ago

This might be an easy way to do that (from Libby):

"BTW - I found a workaround with the model repetition...I just go into the "main" script and delete those models from the "models" structure before the calculations start cranking away..."