https://forums.iesve.com/viewtopic.php? ... c25d0d3b74
https://forums.iesve.com/viewtopic.php? ... c25d0d3b74
I am trying to read the results off a heating coil in an ApacheHVAC system via the htn results file. However I am getting an error and not sure if its because I got the aps_var name wrong. But I have no idea where to get the correct aps_var names as the get_variables() methods does not return ApacheHVAC component variables.
I am using IES VE 2021.3.1.0
Sample Code:
Code: Select all
import iesve
from ies_file_picker import IesFilePicker
import pandas as pd
file_name = IesFilePicker.pick_vista_file([("Vista Files", "*.aps;*.apm;*.htn;*.cln;*.htg;*.clg;*.asp")], "Pick a file")
print(file_name)
with iesve.ResultsReader.open(file_name) as results_file:
hvac = iesve.HVACNetwork
network = hvac.load_network(results_file.hvac_file)
print("\nName: " + network.name)
#df = pd.DataFrame.from_records(results_file.get_variables())
value = results_file.get_hvac_component_results("HC003396","HVAC_TYPE_SIMPLE_HEATING_COIL","Air flow",-1,-1)
print(value)
Code: Select all
value = results_file.get_hvac_component_results("HC003396","HVAC_TYPE_SIMPLE_HEATING_COIL","Air flow",-1,-1)
Boost.Python.ArgumentError: Python argument types in
ResultsReader.get_hvac_component_results(ResultsReader, str, str, str, int, int)
did not match C++ signature:
get_hvac_component_results(class ResultsReader {lvalue}, class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >, int, class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >, int start_day=-1, int end_day=-1)

