Skip to content

Commit

Permalink
fix(units): Add scale correction to support IP model units
Browse files Browse the repository at this point in the history
  • Loading branch information
ed-p-may committed Nov 13, 2022
1 parent db3c3c0 commit 9a92695
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion PHX/hbjson_to_phpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
f"> Reading in the HBJSON file: ./{SOURCE_FILE}")
hb_json_dict = read_HBJSON_file.read_hb_json_from_file(SOURCE_FILE)
hb_model = read_HBJSON_file.convert_hbjson_dict_to_hb_model(hb_json_dict)

hb_model.convert_to_units("Meters")

# --- Generate the PhxProject file.
# -------------------------------------------------------------------------
phx_project = create_project.convert_hb_model_to_PhxProject(
Expand Down
1 change: 1 addition & 0 deletions PHX/hbjson_to_wufi_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def resolve_paths(_args: List[str]) -> Tuple[pathlib.Path, pathlib.Path]:
print(f"> Reading in the HBJSON file: ./{SOURCE_FILE}")
hb_json_dict = read_HBJSON_file.read_hb_json_from_file(SOURCE_FILE)
hb_model = read_HBJSON_file.convert_hbjson_dict_to_hb_model(hb_json_dict)
hb_model.convert_to_units("Meters")

# --- Generate the WUFI Project file.
print(
Expand Down

0 comments on commit 9a92695

Please sign in to comment.