Skip to content

Commit

Permalink
Backwards compatibility with E+ <= 7.2 and meters objects
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelduchesne committed Aug 30, 2021
1 parent 01e974f commit 6a726eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion archetypal/idfclass/outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ def __init__(
a.Variable_Name for a in idf.idfobjects["Output:Variable".upper()]
)
self.output_meters = set(
a.Key_Name for a in idf.idfobjects["Output:Meter".upper()]
getattr(a, "Key_Name", getattr(a, "Name")) # Backwards compatibility
for a in idf.idfobjects["Output:Meter".upper()]
)
# existing_ouputs = []
# for key in idf.getiddgroupdict()["Output Reporting"]:
Expand Down

0 comments on commit 6a726eb

Please sign in to comment.