API Reference io_windows

io_windows

Controller Class for the PHPP Windows worksheet.

Source: PHX/io_windows.py


Windows

IO Controller Class for PHPP “Windows” worksheet.

Attributes

AttributeTypeDescription
xl
shape

Properties

PropertyTypeDescription
header_rowThe row number for the Window entry ‘Header’.
first_entry_rowReturn the starting row for the window data entry block.
last_entry_rowReturn the ending row for the window data entry block.
entry_range_start
entry_range_end
entry_rangeReturn the range for the window data entry block.
windows_row_numbersReturn a list of all the window row numbers.
used_window_row_numbers

Methods

find_header_row(_row_start, _read_length)

Return the row number for the Window entry section ‘Header’

ArgTypeDescription
_row_start
_read_length

find_first_entry_row(_start_row, _read_length)

Return the starting row for the window data entry block.

ArgTypeDescription
_start_row
_read_length

find_last_entry_row(_start_row)

Return the last row of the Window input section.

ArgTypeDescription
_start_row

set_single_window_construction_ids(_row_num, _glazing_construction_id, _frame_construction_id)

Set the glazing and frame construction IDs for a single window.

ArgTypeDescription
_row_numint The row number for the window to set the construction IDs for.
_glazing_construction_idstr The glazing construction ID to set.
_frame_construction_idstr The frame construction ID to set.

write_single_window(_row_num, _window_row)

Write a single WindowRow object to the Windows worksheet.

ArgTypeDescription
_row_num
_window_row

write_windows(_window_rows)

Write a list of WindowRow objects to the Windows worksheet.

ArgTypeDescription
_window_rows

get_all_window_names()

Return a list of all the window names found in the worksheet.

get_total_window_area(_tolerance)

Return the total window area from the PHPP Windows worksheet.

ArgTypeDescription
_tolerance

get_total_skylight_area(_tolerance)

Return the total skylight area from the PHPP Windows worksheet.

ArgTypeDescription
_tolerance

get_all_glazing_names()

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

activate_variants()

Set the frame and glass values to link to the Variants worksheet.

scale_window_size(_row_num, _scale_factor)

Scale the size of a single window based on an overall scale-factor.

ArgTypeDescription
_row_numint The row number of the window to scale.
_scale_factorfloat The factor to scale the window by.

row_is_window(_row_num, _tolerance)

Return True if the row is a window, False otherwise.

ArgTypeDescription
_row_num
_tolerance

row_is_skylight(_row_num, _tolerance)

Return True if the row is a skylight, False otherwise.

ArgTypeDescription
_row_num
_tolerance