Skip to content

Commit 1a5a95a

Browse files
committedAug 29, 2017
update folder date
1 parent 611d1ba commit 1a5a95a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎spt_compute/ecmwf_forecast_process.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
clean_logs,
5050
find_current_rapid_output,
5151
get_valid_watershed_list,
52+
get_datetime_from_date_timestep,
5253
get_datetime_from_forecast_folder,
5354
get_date_timestep_from_forecast_folder,
5455
get_ensemble_number_from_forecast,
@@ -486,9 +487,9 @@ def run_ecmwf_forecast_process(rapid_executable_location, # path to RAPID execu
486487
geoserver_password,
487488
app_instance_id)
488489

489-
last_forecast_date = datetime.datetime.strptime(forecast_date_timestep[:11], '%Y%m%d.%H')
490+
last_forecast_date = get_datetime_from_date_timestep(forecast_date_timestep)
490491

491-
# update lock info file with next forecast
492+
# update lock info file with next forecast
492493
update_lock_info_file(LOCK_INFO_FILE, True, last_forecast_date.strftime('%Y%m%d%H'))
493494

494495
# ----------------------------------------------------------------------

0 commit comments

Comments
 (0)
Please sign in to comment.