#!/usr/bin/env python # coding: utf-8 # ## Code to make old runoff files ## # note: make_old_runoffs.yaml is identical to nowcast.yaml but puts the river output files somewhere other that /results to avoid accidental overwriting # In[1]: import arrow from nowcast.workers import make_runoff_file from types import SimpleNamespace import yaml # In[4]: start = arrow.get(2014, 9, 11) end = arrow.get(2014, 9, 30) with open('../config/make_old_runoffs.yaml', 'rt') as f: config = yaml.safe_load(f) # In[5]: for day in arrow.Arrow.range('day', start, end): args = SimpleNamespace(run_date=day) checklist = make_runoff_file.make_runoff_file(args, config) print (checklist) # In[ ]: