Skip to content
Snippets Groups Projects
Commit e90da9a5 authored by Peters, Wouter's avatar Peters, Wouter
Browse files

added a variable to keep track of lag in window, used to restart the TM5 model...

added a variable to keep track of lag in window, used to restart the TM5 model (istart=3), and to save the savedata between samples
parent 953086eb
No related branches found
No related tags found
No related merge requests found
......@@ -273,10 +273,12 @@ def RunForecastModel(CycleInfo,lag):
else:
startdate = CycleInfo.da_settings['time.sample.start']
enddate = AdvanceTime(startdate,cyclelen)
CycleInfo.da_settings['time.sample.start'] = startdate
CycleInfo.da_settings['time.sample.end'] = enddate
CycleInfo.da_settings['time.sample.window'] = lag
msg = "New simulation interval set : " ; logging.info(msg)
msg = " start date : %s " % startdate.strftime('%F %H:%M') ; logging.info(msg)
......@@ -295,6 +297,8 @@ def RunForecastModel(CycleInfo,lag):
msg = "Running the sampling model has failed, exiting..." ; logging.error(msg)
raise Exception
status = executable.SaveData()
# Advance the sample time
startdate = AdvanceTime( startdate, cyclelen)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment