photonmap.Reader.ReadPO ======================= .. py:module:: photonmap.Reader.ReadPO Functions --------- .. autoapisummary:: photonmap.Reader.ReadPO.setup_dataset_materials photonmap.Reader.ReadPO.get_average_of_props_optic Module Contents --------------- .. py:function:: setup_dataset_materials(w_start: int, w_end: int, po_dir: str) Fills the materialsR (reflection), materialsS (specular) and materialsT (transmission) dictionaries with information from the provided data for the materials of the simulation. Parameters ---------- w_start: int The first wavelength of band. w_end: int The last wavelength of band. po_dir: str The folder which contains all the optical properties of the room Returns ------- materialsR : dict The reflections of all the materials materialsS : dict The specularities of all the materials materialsT : dict The transmission of all the materials .. py:function:: get_average_of_props_optic(band: range, props: dict) -> float Calculate the average value of an optical property in a spectral range Parameters ---------- band: range The spectral range which is considered props: dict A dictionary which contains the optical properties calculated for each wavelength in spectral range Returns ------- result: float the average optical property in a spectral range