Skip to content

Commit 5617e2d

Browse files
change monthly units assigned by datelabel from 'mo' to 'mon' (#756)
1 parent 6ce758c commit 5617e2d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/util/datelabel.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1178,7 +1178,7 @@ def _parse_input_string(cls, quantity, unit):
11781178
elif s in ['seasonally', 'seasonal', 'seasons', 'season', 'se']:
11791179
s = 'season'
11801180
elif s in ['monthly', 'month', 'months', 'mon', 'mo']:
1181-
s = 'mo'
1181+
s = 'mon'
11821182
elif s in ['weekly', 'weeks', 'week', 'wk', 'w']:
11831183
s = 'wk'
11841184
elif s in ['daily', 'day', 'days', 'dy', 'd', 'diurnal', 'diurnally']:
@@ -1203,7 +1203,7 @@ def _get_timedelta_kwargs(cls, q, s):
12031203
return {'days': 365 * q}
12041204
elif s == 'season':
12051205
return {'days': 91 * q}
1206-
elif s == 'mo':
1206+
elif s == 'mon':
12071207
return {'days': 30 * q}
12081208
elif s == 'wk':
12091209
return {'weeks': q}
@@ -1234,7 +1234,7 @@ def format_local(self):
12341234
(defined in :meth:`src.data_manager.DataManager.dest_path`.)
12351235
"""
12361236
if self.quantity == 1:
1237-
if self.unit == 'mo':
1237+
if self.unit == 'mon':
12381238
return 'mon'
12391239
elif self.unit == 'day':
12401240
return 'day'

0 commit comments

Comments
 (0)