API Reference io_areas

io_areas

Controller Class for the PHPP “Areas” worksheet.

Source: PHX/io_areas.py


AreasInputLocation

Generic input item for Areas worksheet items.

Attributes

AttributeTypeDescription
xl
sheet_name
search_col
search_item
input_row_offset

Methods

find_input_row(_row_start, _row_end)

Return the row number where the search-item is found input.

ArgTypeDescription
_row_start
_row_end

Surfaces

Reads and writes surface data to the PHPP ‘Areas’ worksheet.

Attributes

AttributeTypeDescription
xl
shape
surface_cacheDict
group_type_exposures

Properties

PropertyTypeDescription
section_header_rowReturn the row number of the ‘Area input’ section header.
section_first_entry_rowReturn the row number of the very first user-input entry row in the ‘Area input’ section.
section_last_entry_rowReturn the row number of the last user-input entry row in the ‘Area input’ section.
all_surface_rowsReturn a generator of all the row_nums and surface rows in the Areas worksheet.

Methods

find_section_header_row(_row_start, _row_end)

Return the row number of the ‘Area input’ section header.

ArgTypeDescription
_row_start
_row_end

find_section_first_entry_row()

Return the row number of the very first user-input entry row in the ‘Area input’ section.

find_section_last_entry_row(_start_row)

Return the row number of the last user-input entry row in the ‘Area input’ section.

ArgTypeDescription
_start_row

get_surface_phpp_id_by_name(_name, _use_cache)

Return the PHPP-Style id (“1-NorthRoofSurface”, …) when given the surface name.

ArgTypeDescription
_name
_use_cache

get_all_construction_names()

Return a set of all the construction names used in the Areas worksheet.


ThermalBridges

Reads and writes thermal bridge data to the PHPP ‘Areas’ worksheet.

Attributes

AttributeTypeDescription
xl
shape

Properties

PropertyTypeDescription
section_header_row
section_first_entry_row

Methods

find_section_header_row(_row_start, _row_end)

Return the row number of the ‘Thermal Bridge input’ section header.

ArgTypeDescription
_row_start
_row_end

find_section_first_entry_row()

Return the row number of the very first user-input entry row in the ‘Thermal Bridge input’ section.


Areas

IO Controller for the PHPP Areas worksheet.

Attributes

AttributeTypeDescription
xl
shape
group_type_exposuresget_group_type_exposures
surfacesSurfaces
thermal_bridgesThermalBridges

Methods

write_thermal_bridges(_tbs)

Write all of the the thermal bridge data to the PHPP Areas worksheet.

ArgTypeDescription
_tbs

write_surfaces(_surfaces)

Write all of the the surface data to the PHPP Areas worksheet.

ArgTypeDescription
_surfaces

write_item(_phpp_model_obj)

Write the VerificationInputItem item out to the PHPP Areas Worksheet.

ArgTypeDescription
_phpp_model_obj

write_custom_group_summaries(_groups)

Write temp zone letters and descriptions for custom groups in the summary section.

ArgTypeDescription
_groups

get_group_type_exposures()

Return the group type exposures dictionary from the PHPP Areas worksheet.

get_total_net_wall_area()

Return the total net (apertures punched) wall area from the PHPP Areas worksheet.

get_total_net_roof_area()

Return the total net (apertures punched) Roof area from the PHPP Areas worksheet.

get_total_vertical_window_area()

Return the total window area from the PHPP Areas worksheet.

get_total_horizontal_window_area()

Return the total skylight area from the PHPP Areas worksheet.

set_surface_row_construction(_row_num, _phpp_constriction_id)

Set the construction-id for the surface row in the PHPP Areas worksheet.

ArgTypeDescription
_row_num
_phpp_constriction_id

set_surface_row_solar_absorptivity(_row_num, _absorptivity)

Set the solar absorptivity for the surface row in the PHPP Areas worksheet.

ArgTypeDescription
_row_num
_absorptivity

set_surface_row_emissivity(_row_num, _emissivity)

Set the emissivity for the surface row in the PHPP Areas worksheet.

ArgTypeDescription
_row_num
_emissivity