Skip to content

Commit

Permalink
Store nyears in case_data_dict
Browse files Browse the repository at this point in the history
  • Loading branch information
awongel authored Mar 8, 2024
1 parent 0f37518 commit 26a6e05
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions utilities/read_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ def read_input_file_to_dict(file_name):
case_data_dict['datetime_start'] = convert_slash_to_dash_dates(case_data_dict['datetime_start'])
nyears = (datetime.strptime(case_data_dict["datetime_end"], "%Y-%m-%d %H:%M:%S") - datetime.strptime(
case_data_dict["datetime_start"], "%Y-%m-%d %H:%M:%S")).days // 365
case_data_dict['nyears'] = nyears

# Config file path
cwd = Path.cwd()
Expand Down

0 comments on commit 26a6e05

Please sign in to comment.