Skip to content

Commit dc79457

Browse files
committed
fix(wufi_file_schema): FloorCeilingArea Unit
- Fix FloorCeilingArea unit type error (from m to m2)
1 parent f6960da commit dc79457

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

PHX/from_WUFI_XML/wufi_file_schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ class WufiFoundationInterface(BaseModel):
745745

746746
# -- Unheated Basement
747747
HeightBasementWallAboveGrade: Optional[wufi_unit.M] = None
748-
FloorCeilingArea: Optional[wufi_unit.M] = None
748+
FloorCeilingArea: Optional[wufi_unit.M2] = None
749749
U_ValueCeilingToUnheatedCellar: Optional[wufi_unit.Watts_per_M2K] = None
750750
U_ValueWallAboveGround: Optional[wufi_unit.Watts_per_M2K] = None
751751
BasementVolume: Optional[wufi_unit.M3] = None

_testing_WUFI_to_PHX.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@
2727
wufi_xml_model = WUFIplusProject.parse_obj(wufi_xml_data)
2828

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

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

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

0 commit comments

Comments
 (0)