Index: wflow-py/Scripts/wflow_sbm_rtc.py =================================================================== diff -u -rec4560a4a5626f093b4708cb9085a25404a5fc9f -r91d6bcb5e0e6908c800b79712b77ad3cce13a5d3 --- wflow-py/Scripts/wflow_sbm_rtc.py (.../wflow_sbm_rtc.py) (revision ec4560a4a5626f093b4708cb9085a25404a5fc9f) +++ wflow-py/Scripts/wflow_sbm_rtc.py (.../wflow_sbm_rtc.py) (revision 91d6bcb5e0e6908c800b79712b77ad3cce13a5d3) @@ -22,7 +22,7 @@ import numpy as np import ConfigParser -reload(bmi) +#reload(bmi) ''' Todo: include error handling: - When WFlow_ids in the mapping section of config are not in the map @@ -99,7 +99,7 @@ # In[]: Initialize the RTC-Tools model os.chdir(Bin_RTC) -from wrapperExtended import BMIWrapperExtended +from wflow.wrappers.rtc.wrapperExtended import BMIWrapperExtended #RTC_model = BMIWrapperExtended(engine=os.path.join(Bin_RTC,"RTCTools_BMI")) RTC_model = BMIWrapperExtended(engine=os.path.join(Bin_RTC,"RTCTools_BMI")) print 'RTCmodel', Bin_RTC,RTC_model @@ -109,9 +109,15 @@ # In[]: Initialize the WFlow model os.chdir(dir_wflow) LA_model = bmi.wflowbmi_csdms() -LA_model.initialize((IniFile), loglevel=logging.DEBUG) +LA_model.initialize((IniFile), loglevel=logging.WARN) +# now get the forcings that wflow expects +invars = LA_model.get_input_var_names() +outvars = LA_model.get_output_var_names() +inputmstacks = list(set(invars) - set(outvars)) + + # In[]: Investigate start time, end time and time step of both models print 'WFlow:'