/NIF_Photobiology

Postnova, Abeysuriya, Tekieh, et al. model of human photobiological dynamics from simulated spectral irradiance data using ALFA.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

NIF_Photobiology

A collection of Python files / libraries to implement the Postnova, Abeysuriya, Tekieh, et al. models of human photobiology from measured spectrophotometer data / CIE S 026 metrics / or multi-spectral simulations using ALFA. These models are based on the following papers:

Terms of use

The code is licensed under GPL v3. For use of the code in research, kindly cite our associated publications from Building Simulation 2021:

Features

  • biological_model.py and example - files: Calculate the Postnova, Abeysuriya, and Tekieh, et al. models of photobiological dynamics based on sleep/wake dynamics and received light. Outputs include: subjective sleepiness (KSS), melatonin blood level concentration, reaction time (vPVTRT), and phase shifting.
  • spectral_conversion.py and example - files: Convert ALFA spectral irradiance simulations to CIE S 026 outputs automatically.
  • example - getting started.py: Perform simple photobiological modeling on a short timescale.
  • example - annual lightsolve simulation run.py and example - process annual results.py: Perform annual photobiological modelling and analyze results seasonally.

Contents

All code is provided in the root folder.

  • *.py files identified above include libraries and example use cases.
  • *.csv files contain important response curve data for CIE S 026 (action_spectra.csv, D65.csv), EML (c-lambda_lucas2014), and photopic illuminance (v_lambda_1924.csv).
  • The two example - folders contain ALFA-simulated results used in the examples.

Dependencies

  • Python >= 2.7
  • Numpy
  • Python 'Statistics' library

How to use

  1. Download the code using git clone https://github.com/C38C/NIF_Photobiology.git or directly from Github.
  2. Explore the example files.

3 Day Model Dynamics