Skip to content

Commit

Permalink
Another formatting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xylar authored Jul 18, 2024
1 parent b1f96d8 commit 3dca96b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mpas_analysis/shared/io/mpas_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,8 @@ def _parse_dataset_time(ds, inTimeVariableName, calendar,
timeStrings = [''.join(xtime.astype('U')).strip()
for xtime in timeVar.values]
for i, timeString in enumerate(timeStrings):
if (timeString == '0000-01-15_00:00:00' and
i + 1 < len(timeStrings)):
if timeString == '0000-01-15_00:00:00' and \
i + 1 < len(timeStrings):
timeStrings[i] = f'{timeStrings[i + 1][:7]}-01_00:00:00'
days = string_to_days_since_date(dateString=timeStrings,
referenceDate=referenceDate,
Expand Down

0 comments on commit 3dca96b

Please sign in to comment.