Added 1 to fit with the length needed by FAST_READD

This commit is contained in:
Pilar 2021-11-16 10:44:40 -05:00
parent 33774a76c1
commit d738ba242f

View File

@ -121,7 +121,7 @@ class ThermalDemandDynamicSimulation:
else: else:
n_records += 2 n_records += 2
inputs = [f"{n_hoy}.1"] inputs = [f"{n_hoy}.1"]
parameters = [f"{n_records * 13} %[RecLen]", parameters = [f"{n_records * 13 + 1} %[RecLen]",
f"'{weather_path}' %[FileName]", f"'{weather_path}' %[FileName]",
f"',' %[Separator]"] f"',' %[Separator]"]
file = Insel.add_block(file, i_block, 'UBFAST_READD', inputs, parameters) file = Insel.add_block(file, i_block, 'UBFAST_READD', inputs, parameters)
@ -131,7 +131,7 @@ class ThermalDemandDynamicSimulation:
n_ig = i_block n_ig = i_block
n_records = number_usage_zones * 6 n_records = number_usage_zones * 6
inputs = [f"{n_hoy}.1"] inputs = [f"{n_hoy}.1"]
parameters = [f"{n_records * 13} %[RecLen]", parameters = [f"{n_records * 13 + 1} %[RecLen]",
f"'{ig_path}' %[FileName]", f"'{ig_path}' %[FileName]",
f"',' %[Separator]"] f"',' %[Separator]"]
file = Insel.add_block(file, i_block, 'UBFAST_READD', inputs, parameters) file = Insel.add_block(file, i_block, 'UBFAST_READD', inputs, parameters)