From 2f3b94cd039c7785ed23a1ff69a2377c4124f699 Mon Sep 17 00:00:00 2001 From: dmuldrew Date: Wed, 18 Jan 2023 21:06:05 +0000 Subject: [PATCH] refactor: add missing update_if_weekend --- .../demanddata/transportation_electrification/smart_charging.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/prereise/gather/demanddata/transportation_electrification/smart_charging.py b/prereise/gather/demanddata/transportation_electrification/smart_charging.py index 3c84936e7..dbd01635e 100644 --- a/prereise/gather/demanddata/transportation_electrification/smart_charging.py +++ b/prereise/gather/demanddata/transportation_electrification/smart_charging.py @@ -75,6 +75,8 @@ def smart_charging( newdata = data_helper.update_if_weekend(newdata) elif veh_type.lower() == "ldt": newdata = data_helper.remove_ldv(data_helper.load_data(census_region, filepath)) + # updates the weekend and weekday values in the nhts data + newdata = data_helper.update_if_weekend(newdata) elif veh_type.lower() == "mdv": newdata = data_helper.load_hdv_data("mhdv", filepath) elif veh_type.lower() == "hdv":