From a0b6708198ed62b897e64be62737b63053a940e7 Mon Sep 17 00:00:00 2001
From: "christoph.von.oy" <christoph.von.oy@rwth-aachen.de>
Date: Tue, 9 Apr 2024 16:56:38 +0200
Subject: [PATCH] Added Profile

---
 input_profile_processor/input_profile_processor.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/input_profile_processor/input_profile_processor.py b/input_profile_processor/input_profile_processor.py
index 1eb70e0..32ff1cd 100644
--- a/input_profile_processor/input_profile_processor.py
+++ b/input_profile_processor/input_profile_processor.py
@@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 THE SOFTWARE.
 """
 
+from Model_Library.dynamics import Profile
 from Tooling.demand_generator.electrical_demand.ElectricalDemand import ElectricalDemand
 from Tooling.demand_generator.thermal_demand.ThermalDemand import ThermalDemand
 from Tooling.input_profile_processor.calc_irradiance import generate_g_t_series
@@ -74,7 +75,7 @@ def process_input_profiles(input_profile_dict, t_start, dynamic):
 
         input_profile = input_profile.squeeze()
         input_profile.set_axis(list(range(dynamic.number_of_steps())), inplace = True)
-        input_profiles[input_profile_name] = (input_profile, dynamic)
+        input_profiles[input_profile_name] = Profile(input_profile, dynamic)
     return input_profiles
 
 def resample_profile(name, profile, t_start, dynamic, d_step_min, t_last):
-- 
GitLab