From 2cfc88104441c8a2d48015a4b8d3631f9c260259 Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Thu, 28 Nov 2024 14:08:31 +0000 Subject: [PATCH] extracted air tightness --- etl/lodgement/app.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/etl/lodgement/app.py b/etl/lodgement/app.py index 6fe9fdc4..c75ece4c 100644 --- a/etl/lodgement/app.py +++ b/etl/lodgement/app.py @@ -261,6 +261,15 @@ def handler(): summary_to_insert ) + if extracted_contents.get("pulse air permeability"): + # We extract the AP50 number + results_table = extracted_contents["pulse air permeability"]["Results Table"] + ap50 = [x["Extrapolated @ 50PA"] for x in results_table if x["Metric"] == "Air Permeability"][0] + update_dictionary_with_check( + output_row_data, + {"Pre Air Tightness": ap50} + ) + extracted.append(output_row_data) extracted_df = pd.DataFrame(extracted)