Skip to content

Commit b6bae4c

Browse files
committed
adding back nbs that had a conflict
1 parent a78a1fe commit b6bae4c

File tree

8 files changed

+33871
-6
lines changed

8 files changed

+33871
-6
lines changed

_shared_utils/shared_utils/rt_dates.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,15 @@
7474
"oct2024g": "2024-10-21", # additional one-off to capture Amtrak in HQTA
7575
"nov2024": "2024-11-13",
7676
"dec2024": "2024-12-11",
77+
"jan2025": "2025-01-15",
7778
}
7879

7980
y2023_dates = [
8081
v for k, v in DATES.items() if k.endswith("2023") and not any(substring in k for substring in ["jan", "feb"])
8182
]
8283

83-
y2024_dates = [v for k, v in DATES.items() if k.endswith("2024") and k not in ["oct2024g"]]
84-
84+
y2024_dates = [v for k, v in DATES.items() if k.endswith("2024")]
85+
y2025_dates = [v for k, v in DATES.items() if k.endswith("2025")]
8586

8687
valid_weeks = ["apr2023", "oct2023", "apr2024", "oct2024"]
8788

@@ -96,7 +97,7 @@ def get_week(month: Literal[[*valid_weeks]], exclude_wed: bool) -> list:
9697
apr2023_week = get_week(month="apr2023", exclude_wed=False)
9798
oct2023_week = get_week(month="oct2023", exclude_wed=False)
9899
apr2024_week = get_week(month="apr2024", exclude_wed=False)
99-
oct2024_week = [d for d in get_week(month="oct2024", exclude_wed=False) if d != DATES["oct2024g"]]
100+
oct2024_week = get_week(month="oct2024", exclude_wed=False)
100101

101102
MONTH_DICT = {
102103
1: "January",
@@ -111,4 +112,4 @@ def get_week(month: Literal[[*valid_weeks]], exclude_wed: bool) -> list:
111112
10: "October",
112113
11: "November",
113114
12: "December",
114-
}
115+
}

0 commit comments

Comments
 (0)