Changed boolean simulation type indicator
This commit is contained in:
parent
c22d28fc89
commit
dd26fb6fd5
BIN
exports/energy_systems/__pycache__/__init__.cpython-38.pyc
Normal file
BIN
exports/energy_systems/__pycache__/__init__.cpython-38.pyc
Normal file
Binary file not shown.
Binary file not shown.
|
@ -22,7 +22,7 @@ class AirSourceHPExport(HeatPumpExport):
|
|||
:param output_path: the file to hold insel simulation results
|
||||
:param sim_type: the simulation type to run: 1 for series, 0 for parallel
|
||||
"""
|
||||
tmp_file = 'heat_pumps/as_series.txt' if sim_type == 1 else 'heat_pumps/as_parallel.txt'
|
||||
tmp_file = 'heat_pumps/as_series.txt' if sim_type == 0 else 'heat_pumps/as_parallel.txt'
|
||||
template_path = (base_path / tmp_file)
|
||||
super().__init__(base_path, city, output_path, template_path)
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ class WaterToWaterHPExport(HeatPumpExport):
|
|||
:param output_path: the file to hold insel simulation results
|
||||
:param sim_type: the simulation type to run: 1 for series, 0 for parallel
|
||||
"""
|
||||
tmp_file = 'heat_pumps/w2w_series.txt' if sim_type == 1 else 'heat_pumps/w2w_parallel.txt'
|
||||
tmp_file = 'heat_pumps/w2w_series.txt' if sim_type == 0 else 'heat_pumps/w2w_parallel.txt'
|
||||
template_path = (base_path / tmp_file)
|
||||
water_temp = (base_path / 'heat_pumps/wt_hourly3.txt')
|
||||
super().__init__(base_path, city, output_path, template_path, water_temp)
|
||||
|
|
|
@ -15,14 +15,14 @@ class EnergySystemsExportFactory:
|
|||
Exports factory class for energy systems
|
||||
"""
|
||||
|
||||
def __init__(self, city, user_input, hp_model, output_path, sim_type=1, data_type='heat', base_path=None):
|
||||
def __init__(self, city, user_input, hp_model, output_path, sim_type=0, data_type='heat', base_path=None):
|
||||
"""
|
||||
|
||||
:param city: the city object
|
||||
:param user_input: user provided input from UI
|
||||
:param hp_model: the heat pump model to run
|
||||
:param output_path: the file to hold simulation results
|
||||
:param sim_type: the simulation type, 1 for series 0 for parallel
|
||||
:param sim_type: the simulation type, 0 for series 1 for parallel
|
||||
:param data_type: indicates whether cooling or heating data is used
|
||||
:param base_path: the data directory of energy systems
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user