Skip to content

Commit

Permalink
remove parameters from calc_all_buildings
Browse files Browse the repository at this point in the history
  • Loading branch information
PRemmen authored and PRemmen committed Jun 24, 2016
1 parent 5dd82c1 commit ae5b090
Showing 1 changed file with 20 additions and 16 deletions.
36 changes: 20 additions & 16 deletions tests/test_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@ def test_calc_ebc(self):
prj.load_project(utilities.get_full_path("examples/examplefiles"
"/new.teaserXML"))
therm_zone = prj.buildings[0].thermal_zones[0]

prj.buildings[0].calc_building_parameter(number_of_elements=2,
merge_windows=False,
used_library='AixLib')
prj.number_of_elements_calc = 2
prj.merge_windows_calc = False
prj.used_library_calc = 'AixLib'
prj.buildings[0].calc_building_parameter()

assert round(therm_zone.r1_iw, 11) == 4.62113e-06
assert round(therm_zone.c1_iw, 2) == 1209810287.22
Expand Down Expand Up @@ -577,12 +577,14 @@ def test_calc_all_buildings(self):

helptest.building_test2(prj)
helptest.building_test2(prj)
prj.calc_all_buildings(number_of_elements=2,
merge_windows=True,
used_library='AixLib')
prj.calc_all_buildings(number_of_elements=2,
merge_windows=False,
used_library='AixLib')
prj.number_of_elements_calc = 2
prj.merge_windows_calc = True
prj.used_library_calc = 'AixLib'
prj.calc_all_buildings()
prj.number_of_elements_calc = 2
prj.merge_windows_calc = False
prj.used_library_calc = 'AixLib'
prj.calc_all_buildings()

def test_retrofit_all_buildings(self):
'''test of retrofit_all_buildings, no calculation verification'''
Expand All @@ -592,13 +594,15 @@ def test_retrofit_all_buildings(self):
def test_export_aixlib(self):
'''test of export_aixlib, no calculation verification'''

prj.calc_all_buildings(number_of_elements=2,
merge_windows=True,
used_library='AixLib')
prj.number_of_elements_calc = 2
prj.merge_windows_calc = True
prj.used_library_calc = 'AixLib'
prj.calc_all_buildings()
prj.export_aixlib(building_model='MultizoneEquipped')
prj.calc_all_buildings(number_of_elements=2,
merge_windows=False,
used_library='AixLib')
prj.number_of_elements_calc = 2
prj.merge_windows_calc = False
prj.used_library_calc = 'AixLib'
prj.calc_all_buildings()
prj.export_aixlib(building_model='MultizoneEquipped')

def test_export_parameters_txt(self):
Expand Down

0 comments on commit ae5b090

Please sign in to comment.