From 6a726eb34c5f6b33d67b45628e8dd715df5d6bae Mon Sep 17 00:00:00 2001 From: Samuel Letellier-Duchesne Date: Mon, 30 Aug 2021 08:43:03 -0400 Subject: [PATCH] Backwards compatibility with E+ <= 7.2 and meters objects --- archetypal/idfclass/outputs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/archetypal/idfclass/outputs.py b/archetypal/idfclass/outputs.py index 912a4ec5..70e95ce2 100644 --- a/archetypal/idfclass/outputs.py +++ b/archetypal/idfclass/outputs.py @@ -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"]: