Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

You could re-create the functionality of the OpenStudio Radiance measure using the Python bindings. We are also working on formally supporting Python measures for OpenStudio, but their may be a very straight forward approach you can use today. OpenStudio has a Command Line Interface (CLI) that can be called from Python. So you create an OpenStudio OSW (JSON file) that defines the measures and measure arguments, in place of an GUI like OS App). Then you call the run command in the OpenStudio CLI from a Python Script. Here is an example of a Python Script that calls the OpenStudio CLI to run an OSW. https://github.com/NREL/BESTEST-GSR/blob/main/integration_testing/basic_cli_python.py