extended the capturing of u-values from thermal transmittance descriptions

This commit is contained in:
Khalim Conn-Kowlessar 2024-06-27 17:58:50 +01:00
parent 4e85d1380e
commit 07ddf8383b
2 changed files with 3 additions and 2 deletions

View file

@ -1667,6 +1667,7 @@ def compile_data_final():
'windows-description': WindowAttributes,
'lighting-description': LightingAttributes
}
for variable_to_clean in cleaned.keys():
unique_descriptions = property_attributes[variable_to_clean].unique()

View file

@ -2,8 +2,8 @@ import re
import string
from typing import Tuple, Union, Dict, List
THERMAL_TRANSMITTANCE_STR = r"average thermal transmittance (-?\d+(\.\d+)?)\s(w/m\S+k)"
THERMAL_TRANSMITTANCE_REGEX = re.compile(THERMAL_TRANSMITTANCE_STR)
THERMAL_TRANSMITTANCE_STR = r"average thermal transmittance\s*[=:-]?\s*(-?\d+(\.\d+)?)\s*[wW]/m\S*[kK]"
THERMAL_TRANSMITTANCE_REGEX = re.compile(THERMAL_TRANSMITTANCE_STR, re.IGNORECASE)
DOUBLE_SPACE_PATTERN = re.compile(r"\s+")