I've searched the forum and found a post where someone was in need to interrogate HTG and CLG files. Since I am also in need for it and the solution presented in that post didn't work for me, I was wondering if the functionality changed into a new class or stopped being supported.
The solution was something along these lines:
Code: Select all
file_name = IesFilePicker.pick_vista_file([("APS files", "*.aps"), ("HTG files", "*.htg"), ("CLG files", "*.clg")], "Pick a results file")
with iesve.ResultsReader.open(file_name) as results_file_reader:
assert results_file_reader is not None, "Error opening results file"
aps_units = results_file_reader.get_units()Code: Select all
Traceback (most recent call last):
File "test.py", line 16, in <module>
with iesve.ResultsReader.open(file_name) as results_file_reader:
FileNotFoundError: APS file not found: name_of_the_file.htgBest Regards

