Loading raps/cooling.py +7 −2 Original line number Diff line number Diff line Loading @@ -112,6 +112,10 @@ class ThermoFluidsModel: outputs = get_matching_variables(var_model, r'.*(\.summary\.|^summary).*') # print("NUMBER OF FMU OUTPUTS") # print(len(outputs)) # breakpoint() # Get the value references for the variables we want to get/set self.inputs = [v for v in model_description.modelVariables if v.causality == 'input'] self.outputs = [v for v in model_description.modelVariables if v.name in outputs] Loading Loading @@ -155,8 +159,9 @@ class ThermoFluidsModel: # Get temperature from weather data temperature = self.weather.get_temperature(target_datetime) or self.config['WET_BULB_TEMP'] # Set the temperature value runtime_values[self.config['TEMPERATURE_KEY']] = temperature # Set the temperature value(s) for temperature_key in self.config['TEMPERATURE_KEYS']: runtime_values[temperature_key] = temperature return runtime_values Loading raps/ui.py +8 −0 Original line number Diff line number Diff line Loading @@ -260,6 +260,14 @@ class LayoutManager: power_values = [ f"[{data_styles[i]}]{power_row[1][col]}[/]" for i, col in enumerate(power_columns) ] # DEBUGGING # print("len(cooling_keys): " + str(len(cooling_keys))) # print("Contents of power_columns:") # for element in cooling_keys: # print(element) # breakpoint() cooling_values = [ f"[{data_styles[i + len(power_columns)]}]{cooling_row[1][key]:.1f}[/]" for i, key in enumerate(cooling_keys) ] Loading Loading
raps/cooling.py +7 −2 Original line number Diff line number Diff line Loading @@ -112,6 +112,10 @@ class ThermoFluidsModel: outputs = get_matching_variables(var_model, r'.*(\.summary\.|^summary).*') # print("NUMBER OF FMU OUTPUTS") # print(len(outputs)) # breakpoint() # Get the value references for the variables we want to get/set self.inputs = [v for v in model_description.modelVariables if v.causality == 'input'] self.outputs = [v for v in model_description.modelVariables if v.name in outputs] Loading Loading @@ -155,8 +159,9 @@ class ThermoFluidsModel: # Get temperature from weather data temperature = self.weather.get_temperature(target_datetime) or self.config['WET_BULB_TEMP'] # Set the temperature value runtime_values[self.config['TEMPERATURE_KEY']] = temperature # Set the temperature value(s) for temperature_key in self.config['TEMPERATURE_KEYS']: runtime_values[temperature_key] = temperature return runtime_values Loading
raps/ui.py +8 −0 Original line number Diff line number Diff line Loading @@ -260,6 +260,14 @@ class LayoutManager: power_values = [ f"[{data_styles[i]}]{power_row[1][col]}[/]" for i, col in enumerate(power_columns) ] # DEBUGGING # print("len(cooling_keys): " + str(len(cooling_keys))) # print("Contents of power_columns:") # for element in cooling_keys: # print(element) # breakpoint() cooling_values = [ f"[{data_styles[i + len(power_columns)]}]{cooling_row[1][key]:.1f}[/]" for i, key in enumerate(cooling_keys) ] Loading