Skip to content

Commit

Permalink
add rules engine test examples: breslow, cali, feldman
Browse files Browse the repository at this point in the history
  • Loading branch information
axiomizer committed Oct 4, 2023
1 parent a60580a commit 5ecad53
Show file tree
Hide file tree
Showing 7 changed files with 174 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
start_date,end_date,days_in_bill,usage,inclusion_code,inclusion_override,avg_daily_usage,daily_htg_usage
3/3/2019,3/29/2019,27,120,1,,4.44,4.03
3/31/2019,4/30/2019,31,88,0,,2.84,2.43
5/2/2019,6/3/2019,33,66,0,,2.00,1.59
6/5/2019,6/27/2019,23,18,0,,0.78,0.37
6/29/2019,7/31/2019,33,14,-1,,0.42,0.01
8/2/2019,8/28/2019,27,13,-1,,0.48,0.07
8/30/2019,10/1/2019,33,34,0,,1.03,0.62
10/3/2019,10/28/2019,26,50,0,,1.92,1.51
10/30/2019,11/27/2019,29,118,0,,4.07,3.66
11/29/2019,12/30/2019,32,158,1,,4.94,4.53
1/1/2020,1/29/2020,29,138,1,,4.76,4.35
1/31/2020,2/26/2020,27,140,1,,5.19,4.78
2/28/2020,3/30/2020,32,127,1,,3.97,3.56
4/1/2020,4/28/2020,28,86,0,,3.07,2.66
4/30/2020,5/27/2020,28,44,0,,1.57,1.16
5/29/2020,6/26/2020,29,14,0,,0.48,0.07
6/28/2020,7/29/2020,32,11,-1,,0.34,-0.07
7/31/2020,8/27/2020,28,9,-1,,0.32,-0.09
8/29/2020,9/28/2020,31,22,-1,,0.71,0.30
9/30/2020,10/27/2020,28,36,0,,1.29,0.88
10/29/2020,11/30/2020,33,106,0,,3.21,2.80
12/2/2020,12/28/2020,27,131,1,,4.85,4.44
12/30/2020,1/28/2021,30,122,1,,4.07,3.66
1/30/2021,2/26/2021,28,153,1,,5.46,5.05
2/28/2021,3/30/2021,31,141,0,0,4.55,4.14
4/1/2021,4/29/2021,29,77,0,,2.66,2.25
5/1/2021,5/28/2021,28,38,0,,1.36,0.95
5/30/2021,6/29/2021,31,23,0,,0.74,0.33
7/1/2021,7/29/2021,29,10,-1,,0.34,-0.07
7/31/2021,8/31/2021,32,10,-1,,0.31,-0.10
9/2/2021,9/28/2021,27,9,-1,,0.33,-0.08
9/30/2021,10/28/2021,29,26,0,,0.90,0.49
10/30/2021,11/29/2021,31,102,0,,3.29,2.88
12/1/2021,12/27/2021,27,111,1,,4.11,3.70
12/29/2021,1/27/2022,30,166,1,,5.53,5.12
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"local_weather_station": "KBED-Bedford",
"design_temperature_override": null,
"living_area": 1250,
"fuel_type": "GAS",
"heating_system_efficiency": 0.85,
"other_fuel_usage": 0.41,
"other_fuel_usage_override": null,
"thermostat_set_point": 68.0,
"setback_temp": 62.0,
"setback_hours_per_day": 12.0,
"estimated_balance_point": 68.0,
"balance_point_sensitivity": 2.0,
"average_indoor_temperature": 65.0,
"difference_between_ti_and_tbp": -3.0,
"design_temperature": 8.4,
"whole_home_ua": 444,
"standard_deviation_of_ua": 0.0787,
"avg_heat_load": 28672,
"max_heat_load": 27340
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
start_date,end_date,days_in_bill,usage,inclusion_override,inclusion_code,avg_daily_usage,daily_htg_usage
2/28/2018,3/27/2018,28,132,,1,4.71,4.29
3/28/2018,4/30/2018,34,98,,0,2.88,2.46
5/1/2018,5/30/2018,30,23,,0,0.77,0.34
5/31/2018,6/28/2018,29,16,,0,0.55,0.13
6/29/2018,7/29/2018,31,16,,-1,0.52,0.09
7/30/2018,8/27/2018,29,12,,-1,0.41,-0.01
8/28/2018,9/26/2018,30,16,,-1,0.53,0.11
9/27/2018,10/25/2018,29,37,,0,1.28,0.85
10/26/2018,11/27/2018,33,119,,0,3.61,3.18
11/28/2018,12/28/2018,31,151,,1,4.87,4.45
12/29/2018,1/29/2019,32,183,,1,5.72,5.29
1/30/2019,2/28/2019,30,158,,1,5.27,4.84
3/1/2019,3/27/2019,27,128,,1,4.74,4.32
3/28/2019,4/29/2019,33,64,,0,1.94,1.52
4/30/2019,6/3/2019,35,41,,0,1.17,0.75
6/4/2019,6/27/2019,24,11,,0,0.46,0.03
6/28/2019,7/31/2019,34,13,,-1,0.38,-0.04
8/1/2019,8/28/2019,28,11,,-1,0.39,-0.03
8/29/2019,9/30/2019,33,15,,-1,0.45,0.03
10/1/2019,10/25/2019,25,14,,0,0.56,0.14
10/26/2019,11/27/2019,33,100,,0,3.03,2.61
11/28/2019,1/2/2020,36,163,,1,4.53,4.10
1/3/2020,1/30/2020,28,124,,1,4.43,4.00
1/31/2020,2/28/2020,29,118,,1,4.07,3.65
2/29/2020,3/30/2020,31,85,0,0,2.74,2.32
3/31/2020,4/30/2020,31,93,,0,3.00,2.58
5/1/2020,5/28/2020,28,36,,0,1.29,0.86
5/29/2020,6/29/2020,32,13,,0,0.41,-0.02
6/30/2020,7/29/2020,30,9,,-1,0.30,-0.12
7/30/2020,8/27/2020,29,12,,-1,0.41,-0.01
8/28/2020,9/28/2020,32,13,,-1,0.41,-0.02
9/29/2020,10/27/2020,29,33,,0,1.14,0.71
10/28/2020,11/30/2020,34,100,,0,2.94,2.52
12/1/2020,12/29/2020,29,133,,1,4.59,4.16
12/30/2020,1/29/2021,31,172,0,0,5.55,5.12
1/30/2021,2/25/2021,27,167,,1,6.19,5.76
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"local_weather_station": "KBED-Bedford",
"design_temperature_override": null,
"living_area": 3000,
"fuel_type": "GAS",
"heating_system_efficiency": 0.93,
"other_fuel_usage": 0.42,
"other_fuel_usage_override": null,
"thermostat_set_point": 69.0,
"setback_temp": 62.0,
"setback_hours_per_day": 8.0,
"estimated_balance_point": 56.0,
"balance_point_sensitivity": 2.0,
"average_indoor_temperature": 66.7,
"difference_between_ti_and_tbp": 10.7,
"design_temperature": 8.4,
"whole_home_ua": 733,
"standard_deviation_of_ua": 0.0651,
"avg_heat_load": 37318,
"max_heat_load": 45133
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
start_date,end_date,days_in_bill,usage,inclusion_override,inclusion_code,avg_daily_usage,daily_htg_usage
1/23/2019,2/19/2019,28,200,,1,7.14,6.69
2/20/2019,3/20/2019,29,191,,1,6.59,6.13
3/21/2019,4/19/2019,30,115,,0,3.83,3.38
4/20/2019,5/17/2019,28,67,,0,2.39,1.94
5/18/2019,6/18/2019,32,30,,0,0.94,0.48
6/19/2019,7/18/2019,30,13,,-1,0.43,-0.02
7/19/2019,8/19/2019,32,14,,-1,0.44,-0.02
8/20/2019,9/17/2019,29,13,,-1,0.45,-0.01
9/18/2019,10/22/2019,35,43,,0,1.23,0.77
10/23/2019,11/20/2019,29,115,,0,3.97,3.51
11/21/2019,12/17/2019,27,161,,1,5.96,5.51
12/18/2019,1/21/2020,35,234,,1,6.69,6.23
1/22/2020,2/19/2020,29,177,,1,6.10,5.65
2/20/2020,3/19/2020,29,146,,1,5.03,4.58
3/20/2020,4/17/2020,29,118,,0,4.07,3.61
4/18/2020,5/19/2020,32,93,,0,2.91,2.45
5/20/2020,6/18/2020,30,25,,0,0.83,0.38
6/19/2020,7/17/2020,29,16,,-1,0.55,0.10
7/18/2020,8/18/2020,32,16,,-1,0.50,0.04
8/19/2020,9/17/2020,30,15,,-1,0.50,0.04
9/18/2020,10/20/2020,33,43,,0,1.30,0.85
10/21/2020,11/18/2020,29,91,,0,3.14,2.68
11/19/2020,12/21/2020,33,186,,1,5.64,5.18
12/22/2020,1/20/2021,30,189,,1,6.30,5.84
1/21/2021,2/18/2021,29,229,,1,7.90,7.44
2/19/2021,3/17/2021,27,164,,1,6.07,5.62
3/18/2021,4/16/2021,30,96,,0,3.20,2.74
4/17/2021,5/18/2021,32,68,,0,2.13,1.67
5/19/2021,6/17/2021,30,23,,0,0.77,0.31
6/18/2021,7/19/2021,32,11,,-1,0.34,-0.11
7/20/2021,8/17/2021,29,14,,-1,0.48,0.03
8/18/2021,9/17/2021,31,13,,-1,0.42,-0.04
9/18/2021,10/19/2021,32,28,,0,0.88,0.42
10/20/2021,11/18/2021,30,89,,0,2.97,2.51
11/19/2021,12/17/2021,29,124,,1,4.28,3.82
12/18/2021,1/18/2022,32,184,,1,5.75,5.29
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"local_weather_station": "KBED-Bedford",
"design_temperature_override": null,
"living_area": 1662,
"fuel_type": "GAS",
"heating_system_efficiency": 0.90,
"other_fuel_usage": 0.46,
"other_fuel_usage_override": null,
"thermostat_set_point": 67.0,
"setback_temp": 63.0,
"setback_hours_per_day": 7.0,
"estimated_balance_point": 61.0,
"balance_point_sensitivity": 1.0,
"average_indoor_temperature": 65.8,
"difference_between_ti_and_tbp": 4.8,
"design_temperature": 8.4,
"whole_home_ua": 775,
"standard_deviation_of_ua": 0.0776,
"avg_heat_load": 43987,
"max_heat_load": 47732
}
2 changes: 1 addition & 1 deletion rules-engine/tests/test_rules_engine/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def load_temperature_data(weather_station: str) -> List[TemperatureDataRecord]:


# @pytest.fixture(scope="module", params=INPUT_DATA)
@pytest.fixture(scope="module", params=["example-1", "example-4"])
@pytest.fixture(scope="module", params=["example-1", "example-4", "breslow", "cali", "feldman"])
def data(request):
summary = load_summary(request.param)

Expand Down

0 comments on commit 5ecad53

Please sign in to comment.