Skip to content

Commit

Permalink
fix(phpp): Update PHPP write DHW
Browse files Browse the repository at this point in the history
  • Loading branch information
ed-p-may committed Sep 26, 2022
1 parent 6fb40cf commit f01c736
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions PHX/to_PHPP/phpp_model/hot_water_piping.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,18 +106,20 @@ def create_xl_items(self, _sheet_name: str, _row_num: int) -> List[xl_data.XlIte

XLItemDHW = partial(xl_data.XlItem, _sheet_name)
return [
# -- Branch Piping
XLItemDHW(
self.create_range(_row_num + self.shape.branch_piping.input_rows_offset.diameter.row),
self.create_range(_row_num + self.shape.branch_piping.input_rows_offset.diameter.row), # type: ignore
sum(s.diameter * s.length for s in self.phx_pipe) / sum(s.length for s in self.phx_pipe),
"M",
self._get_target_unit('diameter')
),
XLItemDHW(
self.create_range(_row_num + self.shape.branch_piping.input_rows_offset.total_length.row),
self.create_range(_row_num + self.shape.branch_piping.input_rows_offset.total_length.row), # type: ignore
sum(s.length for s in self.phx_pipe),
"M",
self._get_target_unit('total_length')
),
# -- Add Tapping Points
XLItemDHW(
self.create_range(_row_num + self.shape.branch_piping.input_rows_offset.num_taps),
self.num_tap_points,
Expand Down

0 comments on commit f01c736

Please sign in to comment.