forked from ibpsa/project1-boptest
-
Notifications
You must be signed in to change notification settings - Fork 1
/
compare_references.py
146 lines (129 loc) · 7.57 KB
/
compare_references.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
'''
Created on Apr 16, 2021
@author: Javier Arroyo
'''
from testing.utilities import compare_references
def compare(testcase='bestest_air'):
''' Compares references for a specific test case.
Parameters
----------
testcase: string
Specifies test case for which to compare references.
'''
if testcase == 'testcase1':
compare_references(vars_timeseries = ['PHea_y',
'TRooAir_y',
'CO2RooAir_y',
'oveAct_u',
'oveAct_activate'],
refs_old = 'testcase1_old',
refs_new = 'testcase1')
elif testcase == 'testcase2':
compare_references(vars_timeseries = ['PFan_y',
'PPum_y',
'TRooAir_y',
'CO2RooAir_y',
'senTSetRooCoo_y',
'PCoo_y',
'PHea_y',
'senTSetRooHea_y',
'oveTSetRooCoo_activate',
'oveTSetRooHea_activate',
'oveTSetRooCoo_u',
'oveTSetRooHea_u'],
refs_old = 'testcase2_old',
refs_new = 'testcase2')
elif testcase == 'testcase3':
compare_references(vars_timeseries = ['CO2RooAirSou_y',
'CO2RooAirNor_y',
'TRooAirSou_y',
'PHeaNor_y',
'PHeaSou_y',
'TRooAirNor_y',
'TRooAirNor_y',
'oveActSou_u',
'oveActNor_activate',
'oveActNor_u',
'oveActSou_activate',
'oveActSou_activate',
'Occupancy[North]',
'Occupancy[South]',
'UpperSetp[North]',
'UpperSetp[South]',
'TDryBul'],
refs_old = 'testcase3_old',
refs_new = 'testcase3')
elif testcase == 'bestest_air':
compare_references(vars_timeseries = ['fcu_reaPHea_y',
'fcu_reaPFan_y',
'fcu_reaPCoo_y',
'fcu_reaFloSup_y',
'fcu_oveFan_u',
'fcu_oveTSup_u',
'zon_reaTRooAir_y',
'TDryBul',
'LowerSetp[1]'],
refs_old = 'bestest_air_old',
refs_new = 'bestest_air')
elif testcase == 'bestest_hydronic':
compare_references(vars_timeseries = ['reaQHea_y',
'reaPPum_y',
'reaTSetSup_y',
'reaTSetHea_y',
'reaTRoo_y',
'TDryBul',
'LowerSetp[1]'],
refs_old = 'bestest_hydronic_old',
refs_new = 'bestest_hydronic')
elif testcase == 'bestest_hydronic_heat_pump':
compare_references(vars_timeseries = ['reaPHeaPum_y',
'reaPFan_y',
'reaPPumEmi_y',
'reaTSup_y',
'reaTSetHea_y',
'reaTZon_y',
'TDryBul',
'LowerSetp[1]'],
refs_old = 'bestest_hydronic_heat_pump_old',
refs_new = 'bestest_hydronic_heat_pump')
elif testcase == 'multizone_residential_hydronic':
compare_references(vars_timeseries = ['boi_reaGasBoi_y',
'boi_reaPpum_y',
'conHeaBth_reaTZon_y',
'conHeaLiv_reaTZon_y',
'conHeaRo1_reaTZon_y',
'conHeaRo2_reaTZon_y',
'conHeaRo3_reaTZon_y',
'extLiv_reaCO2RooAir_y',
'conCooBth_reaPCoo_y',
'conHeaRo1_oveActHea_u'
'conHeaLiv_oveActHea_u'],
refs_old = 'multizone_residential_hydronic_old',
refs_new = 'multizone_residential_hydronic')
elif testcase == 'singlezone_commercial_hydronic':
compare_references(vars_timeseries = ['oveTZonSet_u','oveTSupSet_u',
'reaCO2Zon_y','reaTZon_y',
'reaPFan_y','reaPPum_y',
'reaQHea_y','ahu_reaTSupAir_y',
'ahu_reaTRetAir_y'],
refs_old = 'singlezone_commercial_hydronic_old',
refs_new = 'singlezone_commercial_hydronic')
elif testcase == 'twozone_apartment_hydronic':
compare_references(vars_timeseries = ['hydronicSystem_oveTHea_u','hydronicSystem_oveMDayZ_u',
'ayZon_reaTRooAir_y','dayZon_reaTretFloHea_y',
'dayZon_reaPowQint_y','nigZon_reaTRooAir_y',
'nigZon_reaTretFloHea_y','nigZon_reaPowQint_y',
'hydronicSystem_reaPeleHeaPum_y','hydronicSystem_reaMpumCon_y'],
refs_old = 'singlezone_commercial_hydronic_old',
refs_new = 'singlezone_commercial_hydronic')
elif testcase == 'multizone_office_simple_air':
compare_references(vars_timeseries = ['chi_reaPChi_y', 'heaPum_reaPHeaPum_y',
'hvac_reaZonCor_TZon_y', 'hvac_reaZonWes_TZon_y',
'hvac_reaZonSou_CO2Zon_y', 'hvac_reaZonEas_CO2Zon_y',
'weaSta_reaWeaTDryBul_y', 'hvac_reaAhu_PFanSup_y',
'hvac_reaZonSou_CO2Zon_y', 'hvac_reaZonEas_CO2Zon_y',
'hvac_reaZonNor_TZon_y'],
refs_old = 'multizone_office_simple_air_old',
refs_new = 'multizone_office_simple_air')
if __name__ == '__main__':
compare(testcase='multizone_office_simple_air')