Skip to content

LBNL-ETA/opticalc

Repository files navigation

Opticalc

Opticalc is a Python library used to generate integrated spectral averages summary values for single glazing and shading layers. It uses https://github.com/LBNL-ETA/pywincalc to perform these calculations. Pywincalc is, in turn, a thin wrapper around the C++ library https://github.com/LBNL-ETA/wincalc. So opticalc wraps pywincalc wraps wincalc. Turtles all the way down.

Opticalc is used primarily by Checkertool V2 as it validates certain products and generate integrated spectral averages summaries.

Opticalc attempts to abstract away the peculiarities of pywincalc, as well as use standard dataclasses and Enums to describe the type of data needed to calculate integrated spectral averages summaries. These foundational dataclasses and Enums are stored in a separate library called py_igsdb_base_data (https://github.com/LBNL-ETA/py_igsdb_base_data) so that they can be accessed directly by Opticalc and other libraries and applications, like CheckertoolV2.

Here's a simple illustration of the relationship between these application and libraries:

Image of the relationship betweeo Optical and related python libraries

Why not include this logic directly in Pywincalc? Pywincalc is generated programmatically from wincalc and does not have much in the way of custom, Python-based logic and classes that help a user make sense of the types and shapes of data and the nature of various operations. Opticalc serves as a location for this extra Python-based code.

License

NOTICE. This Software was developed under funding from the U.S. Department of Energy and the U.S. Government consequently retains certain rights. As such, the U.S. Government has been granted for itself and others acting on its behalf a paid-up, nonexclusive, irrevocable, worldwide license in the Software to reproduce, distribute copies to the public, prepare derivative works, and perform publicly and display publicly, and to permit other to do so.

Berkeley Lab WINDOW Calc Engine (CalcEngine) Copyright (c) 2016 - 2019, The Regents of the University of California, through Lawrence Berkeley National Laboratory (subject to receipt of any required approvals from the U.S. Dept. of Energy). All rights reserved.

If you have questions about your rights to use or distribute this software, please contact Berkeley Lab's Innovation & Partnerships Office at [email protected].

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published