API
bricoleur.stairs module
Function for stair calculations
- bricoleur.stairs.number_risers(total_rise: float, max_riser_height: float) float
Calculate the number of risers (steps) between the upper and lower finish levels.
- Parameters:
total_rise (float) – The vertical distance between the finished flooring of the upper and the lower levels.
max_riser_height (float) – The maximum riser height (usually from the building code).
- Returns:
The number of risers.
- Return type:
no_risers
Example
>>> import bricoleur as bric >>> total_rise_datum = 100 >>> max_riser_height_datum = 7.5 >>> number_risers = bric.number_risers( >>> total_rise = total_rise_datum, >>> max_riser_height = max_riser_height_datum >>> ) >>> print(number_risers) 14
- bricoleur.stairs.riser_height(total_rise: float, number_risers: int) float
Calculate the exact riser height.
- Parameters:
total_rise (float) – The vertical distance between the finished flooring of the upper and the lower levels.
number_risers (int) – The maximum riser height (usually from the building code).
- Returns:
The riser height.
- Return type:
riser_height
Example
>>> import bricoleur as bric >>> total_rise_datum = 100 >>> number_risers_datum = 14 >>> riser_height = bric.riser_height( >>> total_rise = total_rise_datum, >>> number_risers = number_risers_datum >>> ) >>> print(riser_height) 7.142857142857143
- bricoleur.stairs.total_run(number_risers: int, tread_depth: float) float
Calculate the total run.
- Parameters:
number_risers (int) – The maximum riser height (usually from the building code).
tread_depth (float) – The depth of the tread.
- Returns:
The total run.
- Return type:
total_run
Example
>>> import bricoleur as bric >>> number_risers_datum = 14 >>> tread_depth_datum = 11 >>> riser_height = bric.total_run( >>> number_risers = number_risers_datum, >>> tread_depth = tread_depth_datum >>> ) >>> print(total_run) 143