Closed noah-de closed 5 years ago
Here is a pseudo code demo:
kc_collection = {}
for day in range(reasonable_range):
climate = Climate(t_seas=day)
soil = Soil()
crop = Crop(soil=soil)
soil.set_nZr(crop)
model = CropModel(crop,climate, soil)
model.run()
kc_key = str(day)+"kc"
kc_collection["kc__key"] = model.kc
Seems helpful and makes the model easier to implement. I like the “change this to what you want or get a reasonable default” model.
Great! Thanks @kcaylor. We'll work on this and then plan to meet next week.
@Ntkrell and @noah-de were thinking of taking the kwargs dictionary from runmodel.py and coding them in as default kwargs in the respective models (Crop, Climate & Soil). Do you have any opinion on this @kcaylor?
In a collaborative coding session, we saw that this enables rapid setup of running multiple simulations.