mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
Debugging secondary heating extraction
This commit is contained in:
parent
d8e8b997a4
commit
c0d896cd59
1 changed files with 5 additions and 2 deletions
|
|
@ -460,8 +460,11 @@ def extract_epr(pdf_path):
|
|||
if data["Existing Secondary Heating System"] == "":
|
||||
data["Existing Secondary Heating Controls"] = ""
|
||||
else:
|
||||
data["Existing Secondary Heating Controls"] = re.search(r"Main Heating Controls\s*(.*?)\n",
|
||||
secondary_text).group(1).strip()
|
||||
# Might not have heating controls on 2nd system
|
||||
secondary_controls_match = re.search(r"Main Heating Controls\s*(.*?)\n", secondary_text)
|
||||
data["Existing Secondary Heating Controls"] = (
|
||||
secondary_controls_match.group(1).strip() if secondary_controls_match else ""
|
||||
)
|
||||
data["Existing Secondary Heating % of Heat"] = int(
|
||||
re.search(r"Percentage of Heat\s*(\d+)\s*%?", secondary_text).group(1)
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue