Skip to content

Commit

Permalink
set date in time dictionary even if da_init is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
georgemccabe committed May 26, 2023
1 parent 3e7cf27 commit 9109779
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions metplus/util/time_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,8 @@ def ti_calculate(input_dict_preserve):
if 'da_init' in out_dict:
out_dict['date'] = out_dict['da_init']
out_dict['cycle'] = out_dict['da_init']
else:
out_dict['date'] = out_dict['init']

# if lead is wildcard, skip updating other lead values
if out_dict['lead'] == '*':
Expand Down

0 comments on commit 9109779

Please sign in to comment.