Skip to content

Commit

Permalink
fix(wufi_file_schema): FloorCeilingArea Unit
Browse files Browse the repository at this point in the history
- Fix FloorCeilingArea unit type error (from m to m2)
  • Loading branch information
ed-p-may committed Sep 6, 2024
1 parent f6960da commit dc79457
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion PHX/from_WUFI_XML/wufi_file_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ class WufiFoundationInterface(BaseModel):

# -- Unheated Basement
HeightBasementWallAboveGrade: Optional[wufi_unit.M] = None
FloorCeilingArea: Optional[wufi_unit.M] = None
FloorCeilingArea: Optional[wufi_unit.M2] = None
U_ValueCeilingToUnheatedCellar: Optional[wufi_unit.Watts_per_M2K] = None
U_ValueWallAboveGround: Optional[wufi_unit.Watts_per_M2K] = None
BasementVolume: Optional[wufi_unit.M3] = None
Expand Down
10 changes: 5 additions & 5 deletions _testing_WUFI_to_PHX.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@
wufi_xml_model = WUFIplusProject.parse_obj(wufi_xml_data)

# ----------------------------------------------------------------
# # -- 2) Convert the Pydantic WUFI model over to a PHX model
# -- 2) Convert the Pydantic WUFI model over to a PHX model
print(f"[green bold]> Converting XML-data to a PHX-Model[/green bold]")
phx_project = convert_WUFI_XML_to_PHX_project(wufi_xml_model)

# # ----------------------------------------------------------------
# # -- 3) Output the PHX model back to a WUFI-XML
# ----------------------------------------------------------------
# -- 3) Output the PHX model back to a WUFI-XML
target_file = TARGET_DIR / xm_source_file_name
xml_txt = xml_builder.generate_WUFI_XML_from_object(phx_project)

# # ----------------------------------------------------------------
# # -- 4) Save the XML file
# ----------------------------------------------------------------
# -- 4) Save the XML file
print(f"[bold]> Saving the XML file to: ./{target_file}[/bold]")
xml_txt_to_file.write_XML_text_file(target_file, xml_txt, False)

0 comments on commit dc79457

Please sign in to comment.