honeybee_radiance_command.cutil module¶
Collection of auxilary functions for radiance commands and options.
-
honeybee_radiance_command.cutil.
nukedir
(target_dir, rmdir=False)[source]¶ Delete all the files inside target_dir.
- Usage:
nukedir(“c:/ladybug/libs”, True)
-
honeybee_radiance_command.cutil.
parse_radiance_options
(string)[source]¶ Parse a radiance options string (e.g. ‘-ab 4 -ad 256’).
The string should start with a ‘-’ otherwise it will be trimmed to the first ‘-’ in string.
-
honeybee_radiance_command.cutil.
preparedir
(target_dir, remove_content=True)[source]¶ Prepare a folder for analysis.
This method creates the folder if it is not created, and removes the file in the folder if the folder already existed.
-
honeybee_radiance_command.cutil.
write_to_file_by_name
(folder, fname, data, mkdir=False)[source]¶ Write a string of data to file by filename and folder.
- Parameters
folder – Target folder (e.g. c:/ladybug).
fname – File name (e.g. testPts.pts).
data – Any data as string.
mkdir – Set to True to create the directory if doesn’t exist (Default: False).