From d738ba242ffbcb21667653e3b7a46aec5c2a0ee0 Mon Sep 17 00:00:00 2001 From: Pilar Date: Tue, 16 Nov 2021 10:44:40 -0500 Subject: [PATCH] Added 1 to fit with the length needed by FAST_READD --- insel/templates/thermal_demand_dynamic_simulation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/insel/templates/thermal_demand_dynamic_simulation.py b/insel/templates/thermal_demand_dynamic_simulation.py index 80100d0..ef88cad 100644 --- a/insel/templates/thermal_demand_dynamic_simulation.py +++ b/insel/templates/thermal_demand_dynamic_simulation.py @@ -121,7 +121,7 @@ class ThermalDemandDynamicSimulation: else: n_records += 2 inputs = [f"{n_hoy}.1"] - parameters = [f"{n_records * 13} %[RecLen]", + parameters = [f"{n_records * 13 + 1} %[RecLen]", f"'{weather_path}' %[FileName]", f"',' %[Separator]"] file = Insel.add_block(file, i_block, 'UBFAST_READD', inputs, parameters) @@ -131,7 +131,7 @@ class ThermalDemandDynamicSimulation: n_ig = i_block n_records = number_usage_zones * 6 inputs = [f"{n_hoy}.1"] - parameters = [f"{n_records * 13} %[RecLen]", + parameters = [f"{n_records * 13 + 1} %[RecLen]", f"'{ig_path}' %[FileName]", f"',' %[Separator]"] file = Insel.add_block(file, i_block, 'UBFAST_READD', inputs, parameters)