honeybee_radiance_postprocess.helper module¶
Helper functions.
- honeybee_radiance_postprocess.helper.grid_summary(folder: Path, grid_areas: list = None, grids_info: list = None, name: str = 'grid_summary', grid_metrics: list = None, sub_folder: bool = True)[source]¶
Calculate a grid summary for a single metric.
- Parameters:
folder – A folder with results.
grid_areas – A list of area of each sensor.
grids_info – Grid information as a dictionary.
name – Optional filename of grid summary.
grid_metrics – Additional customized metrics to calculate.
sub_folder – If set to True it will look for results in all sub-folders in the folder input. Else it look for results directly in the folder input.
- honeybee_radiance_postprocess.helper.write_structured_array_to_file(folder: Path, name: str, arrays: List[tuple], dtype: List[tuple], fmt: List[str]) Path[source]¶
Write structured array data to a CSV file. Uses NumPy for CPU mode and manual formatting for CuPy mode.
- Parameters:
folder – Path object to the output folder.
name – File name without extension.
arrays – 2D array-like data.
dtype – Structured dtype definition (list of (field_name, dtype)).
fmt – List/tuple of printf-style formats for each column.
- Returns:
Path to the written CSV file.