pywincalc


Namepywincalc JSON
Version 3.3.1 PyPI version JSON
download
home_pagehttps://github.com/LBNL-ETA/pywincalc
SummaryA Python library for calculating thermal and optical properties of glazing systems
upload_time2023-08-29 21:11:03
maintainer
docs_urlNone
authorLBNL
requires_python
licenseBSD 3-clause
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            

Berkeley Lab WINDOW Calc Engine (CalcEngine) Copyright (c) 2016 - 2023, 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 IPO@lbl.gov.

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.


# pywincalc

This module provides a simplified method for calculating various thermal and optical properties of glazing systems.

Version 2 has substantially more features but the interface has also changed as a result.  For help updating existing code see [Migrating from version 1](#Migrating-from-version-1)

Version 3 has additional features but should maintain compatability with code written for version 2 with the exception of cases creating user-defined shades.  Some methods of creating gases and gaps have been deprecated.  If you experience any problems updating code that creates user-defined shades to match the updated examples or problems with gaps or gases please let us know.

# Table of contents
1. [Requirements](#Requirements)
	1. [Windows](#Windows)
	2. [Linux/Mac](#Linux/Mac)
	3. [Building from source](#Building-from-source)
2. [Installation](#Install)
	1. [From PyPi](#From-PyPi)
	2. [Building from source](#Building-from-source)
		1. [Building From Source On Windows](#Building-from-source-on-windows)
3. [Use](#Use)
	1. [Overview](#Overview)
		1. [Optical Calculations](#Optical-Calculations)
		2. [Thermal Calculations](#Thermal-Calculations) 
	2. [Units](#Units)
	3. [Optical Standards](#Optical-Standards)
		1. [Optical Standard File](#Optical-Standard-File) 
	4. [Solid Layers](#Solid-Layers)
		1. [Supported Solid Layer Types](#Supported-solid-layer-types)
	5. [Gaps](#Gaps)
	6. [BSDF (Bidirectional scattering distribution function) Calculations](#BSDF-Calculations)
	7. [Example Use Cases](#Example-Use-Cases)
		1. [Examples](#Examples) 
	8. [pywincalc objects](#pywincalc-objects)
		1. [GlazingSystem](#GlazingSystem)
		2. [Optical Results](#Optical-Results)
			1. [Matrix Optical Results](#Matrix-Optical-Results)
			2. [Color Results](#Color-Results)
			3. [Thermal IR Results](#Thermal-IR-Results)
		3. [Environmental Conditions](#Environmental-Conditions)
		4. [Gases](#Gases)
			1. [Predefined gases](#Predefined-gases)
			2. [Custom gases](#Custom-gases)
			3. [Gas mixtures](#Gas-mixtures)
		5. [Pydoc Class Documentation](#Pydoc-Class-Documentation)
	9. [CMA](#CMA)
		1. [Context and Background](#Context-and-Background)
		2. [THERM](#THERM)
		3. [CMA Calculations](#CMA-Calculations)
		4. [CMA Examples](#CMA-Examples)
	10. [Migrating from version 1](#Migrating-from-version-1)
		1.	[Migrating Glazing_System](#Migrating-Glazing_System)
		2.	[Migrating Results](#Migrating-Results)
			1. [Migrating Optical Results](#Migrating-Optical-Results)
			2. [Migrating Thermal Results](#Migrating-Thermal-Results)
	11. [IGSDB v2 JSON format](#IGSDB-v2-JSON-format) 
	12. [Changelog](#Changelog) 


### Requirements

#### Windows
Windows requires a version of the Microsoft C++ redistributable >= the version of Visual Studio used to build the library.  Currently the wheels on pypi are generated using Visual Studio 16 2019.  However in general installing the latest version of the C++ runtime for your architecture should always be sufficient.  Installation packages are available from Microsoft here: https://docs.microsoft.com/en-US/cpp/windows/latest-supported-vc-redist

#### Linux/Mac
The pre-built wheels provided at pypi should work on any x86/x64 version of Linux or Mac that supports at least C++17.

For M2 Macs pre-built wheels are not currently available.  From our limited testing building from source (see below) should work.  If you have experience problems building from source on a Mac using the M2 architecture please let us know.

#### Building from source
[Git](https://git-scm.com/)

[CMake](https://cmake.org/) - Not required for installing from wheel files on Windows.

## Install

### From PyPi
Once any needed requirements have been installed:

` pip install pywincalc `

### Building from source
Once the requirements have been installed this project can be built from source directly from the repository by

` pip install git+https://github.com/LBNL-ETA/pyWinCalc.git `

#### Building from source on windows
Building Python packages from source on Windows is more complicated than Mac/Linux.  First the correct C++ compiler first needs to be installed as well as CMake.  See https://wiki.python.org/moin/WindowsCompilers for more information about C++ compilers for Python packages on Windows.  Once that has been installed pyWinCalc can be built following the build from source steps.

## Use

### Overview
We recognize that there is a fair amount of complexity in the functionality provided by this library.  To attempt to mitigate this somewhat we have provided a selection of [examples](#Examples) that we hope cover all potential use cases between them.  It may be beneficial to begin by looking at whichever example(s) seem to cover your particular use case and then consulting the rest of this and other documentation.

For example, if you are interested in exploring the effect various gas fills have on glazing systems made from combinations of existing commercial glass products contained in the [IGSDB](igsdb.lbl.gov) you could look at the [gaps_and_gases](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/gaps_and_gases.py) example.

Or if you are interested in seeing all of the possible optical results that can be calculated from the NFRC standard you can find them in the [optical_results_NFRC.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/optica_results_NFRC.py) example.

Most of the functionality provided by pywincalc is based around a glazing system.  That is the solid and gap layers that make up a window not including frames or dividers.  One exception is CMA calculations using frames are also provided, see the [CMA](#CMA) section for more information about the CMA process and calculations.

For glazing systems calculations can be grouped into two broad categories:  optical and thermal calculations.

In the context of this program `optical` and `thermal` refer to the algorithms used to perform the calculations and not the part of the spectrum used in the calculations.  E.g. the calculation for the transmittance in the infrared spectrum is considered an optical calculation here not a thermal calculation.

#### Optical Calculations
Optical calculations are based on optical standards which are defined by `.std` files and are not affected by environmental conditions.  The optical standards define various methods that can be used to generate [optical results](#Optical-Results).

Since optical standards are free to define which methods are provided as well as the names of the methods `pywincalc`provides a general way of calculating optical results via a `optical_method_results` method in the [GlazingSystem](#GlazingSystem) class.

There are a few important exceptions to this.  See the section on [optical calculation details](#Optical-Calculation-Details) for more details.

#### Thermal Calculations
Currently only [ISO 15099](https://www.iso.org/standard/26425.html) thermal calculations are supported.

Thermal calculations depend on the [environmental conditions](#Environmental-Conditions) and, in some cases, optical results calculated using specific methods.  E.g. the [SHGC](https://www.energy.gov/energysaver/energy-performance-ratings-windows-doors-and-skylights) calculations can depend on optical results calculated using the `SOLAR` method from the optical standard.

It is important to note that it is possible to calculate thermal results using an optical standard that does not necessarily conform to the ISO 15099 standard so care should be used when selecting which optical standard is used for thermal calculations.

### Units

With the exception of wavelength values which are in microns all units are values are in SI base units.  However for documentation some units are expressed as more common derived SI units when the values are equivalent.  For example:
- wavelengths: microns (m<sup>-6</sup>)
- conductivity: w⋅m<sup>-1</sup>⋅K<sup>-1</sup> because this is more common than m⋅kg⋅s<sup>−3</sup>⋅K<sup>−1</sup> and 1 w⋅m<sup>-1</sup>⋅K<sup>-1</sup> = 1 m⋅kg⋅s<sup>−3</sup>⋅K<sup>−1</sup>
- temperature: Kelvin
- pressure:  pascals
- thickness: meters
- width/height: meters
- etc...

### Optical Standards
Calculations can be performed using predefined optical standards in the form that is expected by [WINDOW](https://windows.lbl.gov/software/window).  The path to the base standard files is all that needs to be passed.  Any other files referenced by the standard file must be in the same directory (or specified as a relative directory from within the standard file).

Custom standards can be created by creating a new set of files following the same format.

As of version 3.0.0 the standards files are now bundled with the python package so there should be no longer be a need to clone the repository just to get the standards files.

As of version 3.0.0 optical_standard is no longer a required parameter for GlazingSystem.  By default a glazing system created without an optical standard will use the NFRC standard as implemented in the [W5_NFRC_2003.std](https://github.com/LBNL-ETA/pyWinCalc/blob/main/pywincalc/standards/W5_NFRC_2003.std) file.

The path to the directory the bundled standards files are in is in the `pywincalc.standard_path` variable.

#### Optical Standard File
Optical standards used by pywincalc are defined using a standards file and usually several related files referenced by the standards file.

For an example standards file see [W5_NFRC_2003.std](https://github.com/LBNL-ETA/pyWinCalc/blob/main/pywincalc/standards/W5_NFRC_2003.std)

Each standards file contains sections that define the optical methods provided by the standard.  In the W5 NFRC 2003 standard file the first method defined looks like this:

```
Name : SOLAR
Description : NFRC 300-2003 Solar
Source Spectrum : ASTM E891 Table 1 Direct AM1_5.ssp
Detector Spectrum : None
Wavelength Set : Source
Integration Rule : Trapezoidal
Minimum Wavelength : 0.3
Maximum Wavelength : 2.5
```
The most important part for using pywincalc is the name of the method.  Since optical standard files can set anything for a name pywincalc has one generic method for calculating optical results and two other methods to handle exceptions to the generic rule:  THERMAL IR and color calculations.  See the section on [optical calculation details](#Optical-Calculations-Details) for more on those two cases.

The choice of standards file affects what can be calculated because not all files implement all methods.  For example the [prEN_410.std](https://github.com/LBNL-ETA/pyWinCalc/blob/main/pywincalc/standards/prEN_410.std) file does not contain a definition of the THERMAL IR method.

Calculations that rely on specific methods will not work if the standard does not provide them.  Since the prEN_410.std files does not contain a definition for the thermal IR method the `pywincalc.calc_thermal_ir` function will not work. 

### Solid layers
Solid layers define the glazing or shading products that make up a glazing system.  There are several methods for creating solid layers currently supported which use two broad categories of data sources: 
- Data files exported from either [Optics](https://windows.lbl.gov/software/optics) or the [IGSDB](https://igsdb.lbl.gov)
- User-defined data which is data the user has obtained from some other source and needs to be transformed into data structures pywincalc recognizes.

In the examples files with "igsdb" in the name use data downloaded from the IGSDB.  Files with "user_defined" in the name show how to create objects using data supplied by the user.

It is possible to use data IGSDB in conjunction with user-defined data.  E.g. the example file [perforated_screen_user_defined_geometry_igsdb_material](https://github.com/LBNL-ETA/pyWinCalc/blob/include_standards/examples/perforated_screen_user_defined_geometry_igsdb_material.py) uses data downloaded from the IGSDB for a shade material and combines that with a user-defined geometry to create a perforated screen.

Here are some examples of each method of creating a solid layer 
- For a glass layer made from measured data files as exported by Optics:  [glass_local_file.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/glass_local_file.py)
- For a glass layer made from n-band wavelength data from a user-defined source:  [glass_user_defined_nband_data.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/glass_user_defined_nband_data.py)
- For a glass or shade layer made from json returned from the [IGSDB](igsdb.lbl.gov): [glass_double_layer_igsdb_product.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/glass_double_layer_igsdb_product.py) or [venetian_blind_igsdb_product.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/venetian_blind_igsdb_product.py).
- For a shade layer made from a combination of json returned by a request for a material from the [IGSDB](igsdb.lbl.gov) and user-defined geometry: [woven_shade_user_defined_geometry_igsdb_material.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/woven_shade_user_defined_geometry_igsdb_material.py)
- For a shade layers made from a local bsdf xml file: [bsdf_shade_local_file.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/bsdf_shade_local_file.py)
  - Shading layers that are represented by discrete BSDFs are currently a special case in the [IGSDB](igsdb.lbl.gov).  For an example of how to download them see [igsdb_interior_bsdf.py] (https://github.com/LBNL-ETA/pyWinCalc/blob/bsdf_input/examples/igsdb_interior_bsdf.py)
- For a shade layer made from measured n-band wavelength data from some other source and user-defined geometry: [perforated_screen_user_defined_geometry_and_user_defined_nband_material.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/perforated_screen_user_defined_geometry_and_user_defined_nband_material.py)
- For a shade layer made from dual-band wavelength data from some other source and user-defined geometry: [venetian_blind_user_defined_geometry_user_defined_dual_band_material.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/venetian_blind_user_defined_geometry_user_defined_dual_band_material.py)

#### Supported solid layer types
The following types of solid layers are currently supported:
- Glazings that are represented as one set of measured wavelength data.  Products that require deconstruction like some laminates and coated glass are not yet supported.
- Venetian blinds (both horizontal and vertical)
- Woven shades
- Perforated screens
- BSDF shades

### Gaps
For systems with more than one solid layer each solid layer must be separated by a gap.  The methods for creating gaps currently supported are:

- From a selection of predefined gases.  Current predefined gases are:  Air, Argon, Krypton, Xeon.
- From a mixture of predefined gases.
- From creating a custom gas by providing molecular weight, specific heat ratio, and coefficients for specific heat at constant pressure (Cp), thermal conductivity, and viscosity.
- From a mixture of custom gases.

As of version 3.0.0 vacuum gaps are supported.

For examples of each see [gaps_and_gases.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/gaps_and_gases.py) in the examples directory.

### BSDF Calculations

Shading products require BSDF calculations while glazings do not.  If any layer passed to a glazing system is a shading layer the glazing system will also require a BSDF hemisphere.  For examples see any of the shade examples e.g. [venetian_blind_local_file.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/venetian_blind_local_file.py)

However it is possible to use BSDF calculations for a system with no shading products.  To do so pass a BSDF hemisphere as in the examples with shading systems.  For an example that also shows results that are only available for BSDF calculations see [optical_results_NFRC.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/optical_results_NFRC.py)

If a glazing system is given a BSDF hemisphere as a parameter it will always use that for optical calculations.

### Example use cases

Since there are several ways of creating and combining layers plus different calculation options example scripts are provided in the [/example](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/) directory.  

These scripts use optical standards that are included with pywincalc.  Some scripts use measured data for example products provided in the [/examples/products](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/products) directory.

A minimum example might look like this
```
import pywincalc

clear_3_path = "products/CLEAR_3.DAT"
clear_3 = pywincalc.parse_optics_file(clear_3_path)

solid_layers = [clear_3]

glazing_system = pywincalc.GlazingSystem(solid_layers=solid_layers)
print("Single Layer U-value: {u}".format(u=glazing_system.u()))
```

Please see the following examples which contain more information.

The examples names have the following meanings:
1. `igsdb` means the example downloads data from the [IGSDB](http://igsdb.lbl.gov)
2. `user-defined` means the example does not use a completely defined existing product.  This could be anything from using a pre-defined material to make a shade to using user-defined measured spectral data.

NOTE:  The igsdb examples require the python requests library and an API token for igsdb.lbl.gov.  An API token can be obtained by creating an account there.  See https://igsdb.lbl.gov/about/ for more information on creating an account.
#### Examples
- [minimum_example.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/minimum_example.py) The minimum example shown above.  Calculates the U-value for a single piece of generic clear glass.
- [bsdf_integrator.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/bsdf_integrator.py): Shows how to integrate BSDF matrices to get transmittances and reflectances for each incident angle.
- [bsdf_shade_igsdb_product.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/bsdf_shade_igsdb_product.py): Shows how to create a BSDF shade by downloading data from the IGSDB.
- [bsdf_shade_local_file.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/bsdf_shade_local_file.py): Shows how to create a BSDF shade from a BSDF XML file stored locally.
- [bsdf_shade_local_file.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/bsdf_shade_local_file.py): Shows how to create a BSDF shade from a BSDF XML file stored locally.
- [cma_single_vision.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/cma_single_vision.py): Shows how to do a CMA calculation for a single-vision window and which results are available for CMA calculations.
- [cma_double_vision_horizontal.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/cma_double_vision_horizontal.py): Shows how to do a CMA calculation for a horizontal double-vision window and which results are available for CMA calculations.
- [cma_double_vision_vertical.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/cma_double_vision_vertical.py): Shows how to do a CMA calculation for a vertical double-vision window and which results are available for CMA calculations.
- [deflection.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/deflection.py): Shows how to enable and set deflection properties and which deflection results are available.
- [environmental_conditions_user_defined.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/environmental_conditions_user_defined.py): Shows how to create user-defined environmental conditions.
- [gases.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/gases.py): Shows how to create gases and gas mixtures from predefined gas types and custom gases created from gas properties.  Then shows how to uses those gases in gap layers for the glazing system.
- [glass_double_layer_igsdb_product.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/glass_double_layer_igsdb_product.py): Shows how to create a double layer glazing system from generic glass data downloaded from the IGSDB.
- [glass_local_file.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/glass_local_file.py): Shows how to create a single layer glazing system from generic glass data from a local file.
- [glass_triple_layer_local_file.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/glass_triple_layer_local_file.py): Shows how to create a triple layer glazing system from generic glass data from a local file
- [glass_user_defined_nband_data.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/glass_user_defined_nband_data.py): Shows how to create a single layer glazing system from user-defined data.
- [optical_results_EN_410.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/optical_results_EN_410.py): Shows how to create a glazing system using the EN-410 optical standard and all optical results available.
- [optical_results_NFRC.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/optical_results_NFRC.py): Shows how to create a glazing system using the NFRC optical standard and all optical results available.
- [perforated_screen_igsdb_product.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/perforated_screen_igsdb_product.py): Shows how to create a perforated screen by downloading shading layer information from the IGSDB.
- [perforated_screen_user_defined_geometry_and_user_defined_nband_material.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/perforated_screen_user_defined_geometry_and_user_defined_nband_material.py): Shows how to create a perforated screen from user-defined n-band material data and a user-defined geometry.
- [perforated_screen_user_defined_geometry_igsdb_material.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/perforated_screen_user_defined_geometry_igsdb_material.py): Shows how to create a perforated screen by downloading shade material data from the IGSDB and combining it with a user-defined geometry.
- [pv_local_file.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/pv_local_file.py): Shows how to create a system with a single layer that has integrated PV data.  For information on creating a IGSDB v2 json file with PV data see the provided [generic_pv.json](https://github.com/LBNL-ETA/pyWinCalc/tree/main/examples/products/generic_pv.json) file and the [IGSDB v2 JSON format](#IGSDB-v2-JSON-format) section below.
- [thermal_ir.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/thermal_ir.py): Shows how to calculate optical results for the thermal IR method.  Note that currently only calculations for a single solid layer are supported and these only have diffuse-diffuse transmittances and hemispherical emissivities.
- [thermal_results_ISO_15099.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/thermal_results_ISO_15099.py): Shows all thermal results available.  Currently only ISO 15099 is supported for thermal calculations.
- [venetian_blind_igsdb_product.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/venetian_blind_igsdb_product.py): Shows how to create a Venetian blind by downloading shading layer information from the IGSDB.
- [venetian_blind_local_file.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/venetian_blind_local_file.py): Shows how to create a Venetian blind by using shading layer information stored in a local file.
- [venetian_blind_user_defined_geometry_igsdb_material.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/venetian_blind_user_defined_geometry_igsdb_material.py): Shows how to create a Venetian blind from material data downloaded from the IGSDB and a user-defined geometry.
- [venetian_blind_user_defined_geometry_user_defined_dual_band_material.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/venetian_blind_user_defined_geometry_user_defined_dual_band_material.py): Shows how to create a Venetian blind from user-defined dual-band material data and a user-defined geometry.
- [vertical_venetian_user_defined_geometry_igsdb_material.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/vertical_venetian_user_defined_geometry_igsdb_material.py): Shows how to create a vertical Venetian blind from material data downloaded from the IGSDB and a user-defined geometry.
- [woven_shade_user_defined_geometry_igsdb_material.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/woven_shade_user_defined_geometry_igsdb_material.py): Shows how to create a woven shade from material data downloaded from the IGSDB and a user-defined geometry.

#### Non-example files
These are files in the example folder that provide some functionality but are not calculation examples.
- [igsdb_interaction.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/igsdb_interaction.py): Encapsulates some basic interaction with the [IGSDB](http://igsdb.lbl.gov)

If there is something you are trying to calculate that does not exist as an example yet please contact us.

### pywincalc objects

#### GlazingSystem
As of version 3.0.0 if you create a GlazingSystem without an optical standard it will default to using the NFRC optical standard and optical_standard is not required.
- Constructor:  
    - Requires parameters:  
        - solid_layers
    - Optional parameters:
        - optical_standard  Defaults to NFRC
        - gap_layers  Defaults to no gap layers.  If more than one solid layer is provided then len(solid_layers) - 1 gap_layers must be provided
        - width_meters  Defaults to 1.0 meters
        - height_meters  Defaults to 1.0 meters
        - environment  Defaults to NFRC U environment
        - bsdf_hemisphere  Defaults to no BSDF hemisphere. Required if any solid layers require BSDF calculations.
        - spectral_data_wavelength_range_method  Defaults to full wavelength range.
        - number_visible_bands  Defaults to 5.  Not used if spectral_data_wavelength_range_method is set to full. 
        - number_solar_bands  Defaults to 10.  Not used if spectral_data_wavelength_range_method is set to full. 
- Available calculation methods.
    - Thermal
        - u(theta=0, phi=0) Calculates the U-value for the system at incidence angle theta and phi
        - shgc(theta=0, phi=0) Calculates the SHGC value for the system at incidence angle theta and phi
        - layer_temperatures(TarcogSystemType, theta=0, phi=0)  Calculates the temperature at each layer based on the given TarcogSystemType (U or SHGC) at theta and phi incidence angle.  Returns a list of temperatures for each solid layer in K.  Note that the TarcogSystemType is specifying the calculation methodology for this calculation which is independed of the environment used to construct the GlazingSystem.  When U system is passed as a parameter the layer temperatures will be calculated for the given environments without taking solar radiation into account.  When SHGC system is passed as a parameter solar radiation is taken into account.
        - solid_layers_effective_conductivities(TarcogSystemType, theta=0, phi=0)  Calculates the effective conductivity for each solid layer based on the given TarcogSystemType (U or SHGC) at theta and phi incidence angle.  Returns a list of effective conductivities for each solid layer.  See note in layer_temperatures for the meaning of the TarcogSystemType parameter.
        - gap_layers_effective_conductivities(TarcogSystemType, theta=0, phi=0)  Calculates the effective conductivity for each gap layer based on the given TarcogSystemType (U or SHGC) at theta and phi incidence angle.  Returns a list of effective conductivities for each gap layer.  See note in layer_temperatures for the meaning of the TarcogSystemType parameter.
        - system_effective_conductivities(TarcogSystemType, theta=0, phi=0)  Calculates the effective conductivity for the entire system based on the given TarcogSystemType (U or SHGC) at theta and phi incidence angle.  Returns a single value.  See note in layer_temperatures for the meaning of the TarcogSystemType parameter.
    - Optical
        - optical_method_results(method_name, theta=0, phi=0)  Calculates all optical results for the method in the optical standard with the name of `method_name` at theta and phi incidence angle.  Returns an `OpticalResults` object containing all of the results.  See [Optical Results](Optical-Results) section below.
        - color(theta=0, phi=0) Calculates color results and theta and phi incidence angle.  Returns a ColorResults object.  See the Color Results section in Optical Results below.

##### Optical Calculations Details
Most optical results can be calculated by passing the name of the optical method to the `optical_method_results`method of the `GlazingSystem`.  However there are two exceptions:

1. Colors.  Color calculations are calculated using three tristimulus optical methods, not one.  In the [NFRC standard](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/standards/W5_NFRC_2003.std) provided these three methods are named `COLOR_TRISTIMX`, `COLOR_TRISTIMY`, and `COLOR_TRISTIMZ`.  While it is possible to calculate results for each of these methods individually the results will not give accurate color information.
2. `THERMAL IR`method.  Thermal IR optical results are only available for a single layer and cannot be calculated for a system.  These results should be calculated using the `calc_thermal_ir`function.

#### Optical Results
There are two types of optical results available: those calculated from any method that is not a color method and color results.  Color calculations are a special case and therefore have their own method used to calculate them and their own results structure.  The differences between color results and other optical results is discussed in the section below.

An `OpticalResults` object has two parts: `system_results` and `layer_results`.

`system_results` apply to the system as a whole and are objects nested as follows:  `system_results.side.transmission_type.flux_type` With the following options available for each

- side:  `front`, `back`
- transmission_type: `transmittance`, `reflectance`
- flux_type: `direct_direct`, `direct_diffuse`, `direct_hemispherical`, `diffuse_diffuse`, `matrix`
    - Note:  `direct_hemisperical` = `direct_direct` + `direct_diffuse`

E.g. the direct-diffuse front reflectance is `system_results.front.reflectance.direct_diffuse`

`layer_results` contain a list of results corresponding to each solid layer.  Results for both sides are provided for each layer.  Currently the only supported result per side is absorptance.  Absorptance is available for both direct and diffuse cases.

As of version 2.4.0 absorptance results are available as heat and electricity.  Electricity absoprtance is only non-zero for layers with PV data.  The following results are available for each side of each layer:
`total_direct, total_diffuse, heat_direct, heat_diffuse, electricity_direct, electricity_diffuse, direct, diffuse` NOTE: direct and diffuse are deprecated and equal to total_direct and total_diffuse.  

As of version 3.0.0 angular absorptance results are also available.  These results are only available for systems that have a BSDF hemisphere.

E.g the diffuse back absorptance for the first solid layer is `layer_results[0].back.absorptance.diffuse`

##### Matrix Optical Results
Matrix results are only available for systems that have a BSDF basis.  See the section on [BSDF Calculations](#BSDF-Calculations) for information on how to create and use a BSDF basis.  For systems with a BSDF basis the matrix result is a square matrix of the same size as the number of patches in the basis.  

##### Color Results
The structure of color results is similar to, but different from, the structure of other optical results.  There are two main differences.  First individual layer results are not yet supported for colors.  And second instead of one value at each flux type (direct-direct, direct-diffuse, etc...) color results have RGB, Lab, and Trichromatic values.  Those represent the same result mapped into three common color spaces for convenience.  

So while for other results `results.front.transmittance.direct_direct` would return a single value for colors that returns an object that contains RGB, Lab, and Trichromatic objects.  E.g. to get the RGB blue value from a color result this is required: `results.front.transmittance.direct_direct.rgb.B`

##### Thermal IR Results
Thermal IR results are only available for a single layer and only have four results available.  They are:
1. `transmittance_front_diffuse_diffuse`
2. `transmittance_back_diffuse_diffuse`
3. `emissivity_front_hemispheric`
4. `emissivity_back_hemispheric`

#### Environmental Conditions
Environmental conditions consists of two parts:  the inside and outside environment.  The exterior environment will be used as the environment before the first solid layer in the system and the interior environment will be used after the last solid layer in the system.  Each contains the same fields.  To use custom values for thermal calculations create an Environments object from inside and outside Environment objects. See [environmental_conditions_user_defined.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/environmental_conditions_user_defined.py)

Environment fields:
- air_temperature
- pressure
- convection_coefficient
- coefficient_model
- radiation_temperature
- emissivity
- air_speed
- air_direction
- direct_solar_radiation

Pre-constructed NFRC U and SHGC environments are available by calling `pywincalc.nfrc_u_environments()` and `pywincalc.nfrc_shgc_environments()`

#### Gases
There are several options for gases.  Gases can be created either from pre-defined gases (e.g. Air, Argon, etc...), by supplying physical parameters to create arbitrary custom gases, or by mixtures containing either predefined or custom gases.

##### Predefined gases
Gases can be created from a `PredefinedGasType`.  Current supported predefined gas types are: AIR, ARGON, KRYPTON, and XENON.

As of version 3.0.0 the below is deprecated.  See See [gaps_and_gases.py](https://github.com/LBNL-ETA/pyWinCalc/blob/include_standards/examples/gaps_and_gases.py) for the new method of creating gases.

A gap layer can be created from a predefined gas type like so:
```
gap_1 = pywincalc.Gap(pywincalc.PredefinedGasType.AIR, .0127)  # .0127 is gap thickness in meters
```

##### Custom gases
A `CustomGasData` object can be created by providing the following information:
- Name
- molecular_weight
- specific_heat_ratio
- Cp
   - Expressed as a GasCoefficients object with A, B, and C fields.
- thermal_conductivity
    - Expressed as a GasCoefficients object with A, B, and C fields.
- viscosity
   - Expressed as a GasCoefficients object with A, B, and C fields.

See [gaps_and_gases.py](https://github.com/LBNL-ETA/pyWinCalc/blob/include_standards/examples/gaps_and_gases.py) for more on creating custom gases.

##### Gas mixtures
Gas mixtures can be created from custom and predefined gases by specifying the percentage of each in the mixtures.

As of version 3.0.0 the below is deprecated.  See [gaps_and_gases.py](https://github.com/LBNL-ETA/pyWinCalc/blob/include_standards/examples/gaps_and_gases.py) for the new method of creating gases.

```
# The following creates a gas that is 80% sulfur hexafluoride, 15% Argonm and 5% Air
gap_4_component_1 = pywincalc.CustomGasMixtureComponent(sulfur_hexafluoride, 0.8)
gap_4_component_2 = pywincalc.PredefinedGasMixtureComponent(pywincalc.PredefinedGasType.ARGON, .15)
gap_4_component_3 = pywincalc.PredefinedGasMixtureComponent(pywincalc.PredefinedGasType.AIR, .05)
gap_4 = pywincalc.Gap([gap_4_component_1, gap_4_component_2, gap_4_component_3], .025)  # 2.5mm thick gap
```

#### Pydoc Class Documentation
Complete class documentation generated by pydoc can be found here: https://github.com/LBNL-ETA/pyWinCalc/blob/main/pywincalc_class_documentation.html

## CMA

### Context and Background

See this paper for context and background about the CMA modeling process: [Component Modeling Methodology for Predicting Thermal Performance of Non-Residential Fenestration Systems](https://github.com/LBNL-ETA/pyWinCalc/blob/CMA/docs/Component_Modeling_Methodology.pdf)

### THERM

In THERM, when inserting a glazing system, on the first Glazing Systems dialog box, instead of clicking the "Import" button, click the "NFRC CMA..." button. This will take you to a special "Insert Glazing System" dialog box specifically for the CMA calculation. The THMX file created when this THERM file is saved has the required CMA information in it for use with the pyWinCalc code.

### CMA Calculations

The CMA calculation process can be summarized with the following steps:
1. Create frames and spacer thmx CMA files in THERM.  See previous section for the correct way to do this.
2. Parse the thmx files using pywincalc.parse_thmx_file
3. Get the effective conductivity for the spacer using pywincalc.get_spacer_keff
4. Create a CMA window.  Currently three configurations are supported: pywincalc.get_cma_window_single_vision, pywincalc.get_cma_window_double_vision_vertical, and pywincalc.get_cma_window_double_vision_horizontal.
5. Get CMA results by calling pywincalc.calc_cma with the CMA window from step 4, the glazing system U, SHGC, and visibile transmittance, and the spacer keff from step 3.  Note:  The glazing system values can be calculated using a pywincalc.GlazingSystem (see glazing system examples above) or from other sources.  However the dimensions of the glazing system used calculate those results should match the dimensions that will be used in the CMA window.  pywincalc.CMAWindow provides a glazing_system_dimensions function that will return the appropriate glazing system size.

### CMA Examples
The examples folder has the following examples:

- [cma_single_vision.py](https://github.com/LBNL-ETA/pyWinCalc/blob/CMA/examples/cma_single_vision.py): Perform a CMA calculation for a single vision window using sample THERM frames and spacer thmx files and precalculated glazing system results.
- [cma_double_vision_vertical.py](https://github.com/LBNL-ETA/pyWinCalc/blob/CMA/examples/cma_double_vision_vertical.py): Perform a CMA calculation for a double vision vertical window using sample THERM frames and spacer thmx files and precalculated glazing system results.
- [cma_double_vision_horizontal.py](https://github.com/LBNL-ETA/pyWinCalc/blob/CMA/examples/cma_double_vision_horizontal.py): Perform a CMA calculation for a double vision horizontal using sample THERM frames and spacer thmx files and precalculated glazing system results.
- [cma_single_vision_igsdb_parametric.py](https://github.com/LBNL-ETA/pyWinCalc/blob/CMA/examples/cma_double_vision_horizontal.py): An example of how a parametric calculation might be performed.  Makes all possible double layer glazing systems from IGSDB glazing records with the inner layer set to generic clear 3mm glass.  Runs CMA calculations on them using sample frames and spacers.  Reports the systems with the highest and lowest U, SHGC, and visible transmittance.

## Migrating from version plder versions

# From version 2 to 3

Most of the interface in version 2 should work in version 3 with the exception of user-defined shades.  Creating shades with user-defined data should hopefully be easier and clearer.  There are now factory methods for each non-BSDF shade type: `create_perforated_screen`, `create_venetian_blind` and `create_woven_shade`.  See [perforated_screen_user_defined_geometry_and_user_defined_nband_material.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/perforated_screen_user_defined_geometry_and_user_defined_nband_material.py), [perforated_screen_user_defined_geometry_igsdb_material.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/perforated_screen_user_defined_geometry_igsdb_material.py), [venetian_blind_user_defined_geometry_igsdb_material.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/venetian_blind_user_defined_geometry_igsdb_material.py), [venetian_blind_user_defined_geometry_user_defined_dual_band_material.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/venetian_blind_user_defined_geometry_user_defined_dual_band_material.py), [vertical_venetian_user_defined_geometry_igsdb_material.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/vertical_venetian_user_defined_geometry_igsdb_material.py), or [woven_shade_user_defined_geometry_igsdb_material.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/woven_shade_user_defined_geometry_igsdb_material.py)

Creating gases and gaps has changed but the prior interface has been retained and flagged as deprecated.  If you run into any problems with existing code and cannot easily convert it following the examples in [gaps_and_gases.py](https://github.com/LBNL-ETA/pyWinCalc/blob/include_standards/examples/gaps_and_gases.py) contact us and hopefully we will be able to help.

# From version 1

There were several interface changes that resulted from the new functionality.  These changes are mostly contained in two places:  The GlazingSystem constructor and the results structures.  Each section will start with a guide on how to convert existing code and will follow with some rational and explination.  This conversion will convert the code in the v1 example.py file to code that will work in v2.

```python 
# Code prior to line 16 in the v1 example.py does not need to be changed

# v1 code
glazing_system_single_layer = pywincalc.Glazing_System(solid_layers, gaps, standard, width, height)
u_results = glazing_system_single_layer.u() # calculate U-value according to ISO15099
print("Single Layer U-value: {u}".format(u=u_results.result))

# v2 code
glazing_system_single_layer = pywincalc.GlazingSystem(optical_standard=optical_standard, solid_layers=solid_layers, width=width, height=height, environment=pywincalc.nfrc_u_environments())
u_result = glazing_system_single_layer.u() # calculate U-value according to ISO15099
print("Single Layer U-value: {u}".format(u=u_result))

# These results are not available in the thermal results but are available in optical results
# See the section on available optical results for how to obtain them
print("Single Layer u t_sol: {t}".format(t=u_results.t_sol))
print("Single Layer u solar absorptances per layer: {a}".format(a=u_results.layer_solar_absorptances))

#v1 code 
shgc_results = glazing_system_single_layer.shgc() # calculate SHGC according to ISO15099
print("Single Layer SHGC: {shgc}".format(shgc=shgc_results.result))

# v2 code
# Important Note:  While it is still possible to calculate the SHGC value for the 
# glazing_system_single_layer system created above it will do so using the NFRC U 
# environments.  This will not result in the same SHGC as before.  To achieve the
# same SHGC as before a glazing system with the correct environment needs to be created

glazing_system_single_layer_nfrc_shgc_env = pywincalc.GlazingSystem(optical_standard=optical_standard, solid_layers=solid_layers, width=width, height=height, environment=pywincalc.nfrc_shgc_environments())
shgc_result = glazing_system_single_layer_nfrc_shgc_env.shgc() # calculate SHGC according to ISO15099
print("Single Layer SHGC: {shgc}".format(shgc=shgc_result))

# v1 code
# These results are not available in the thermal results but are available in optical results
# See the section on available optical results for how to obtain them
print("Single Layer SHGC t_sol: {t}".format(t=shgc_results.t_sol))
print("Single Layer SHGC solar absorptances per layer: {a}".format(a=shgc_results.layer_solar_absorptances))

#v1 code
solar_optical_results_single_layer = glazing_system_single_layer.all_method_values(pywincalc.Method_Type.SOLAR)

# v2 code
solar_optical_results_single_layer = glazing_system_single_layer.optical_method_results("SOLAR")

# v1 code
print("Single Layer Solar optical transmittance front direct-direct: {r}".format(r=solar_optical_results_single_layer.direct_direct.tf))

# v2 code
print("Single Layer Solar optical transmittance front direct-direct: {r}".format(r=solar_optical_results_single_layer.system_results.front.transmittance.direct_direct))

# v1 code
gap_1 = pywincalc.Gap_Data(pywincalc.Gas_Type.AIR, .0127) # .0127 is gap thickness in meters
gap_2 = pywincalc.Gap_Data(pywincalc.Gas_Type.ARGON, .02) # .02 is gap thickness in meters

# v2 code
gap_1 = pywincalc.Gap(pywincalc.PredefinedGasType.AIR, .0127)  # .0127 is gap thickness in meters
gap_2 = pywincalc.Gap_Data(pywincalc.PredefinedGasType.ARGON, .02) # .02 is gap thickness in meters

# v1 code
tf_rgb_results_triple_layer = color_results_triple_layer.direct_direct.tf.rgb
print("Triple Layer color results transmittance front direct-direct RGB: ({r}, {g}, {b})".format(r=tf_rgb_results_triple_layer.R, g=tf_rgb_results_triple_layer.G, b=tf_rgb_results_triple_layer.B))

# v2 code
tf_rgb_results_triple_layer = color_results_triple_layer.system_results.front.transmittance.direct_direct.rgb
print("Triple Layer color results transmittance front direct-direct RGB: ({r}, {g}, {b})".format(r=tf_rgb_results_triple_layer.R, g=tf_rgb_results_triple_layer.G, b=tf_rgb_results_triple_layer.B))
```

#### Migrating Glazing_System


First Glazing_System was changed to GlazingSystem to be more in line with python's naming conventions.

Second the GlazingSystem constructor parameter order changed and there are additional paramters that can be passed in. All parameters are now able to be passed using keywords.  e.g.

`glazing_system = pywincalc.GlazingSystem(optical_standard=optical_standard, solid_layers=solid_layers)`

Finally there is a change to how environmental conditions are handled.  In v1 GlazingSystem had two built-in environments -- NFRC U and NFRC SHGC.  In v2 a GlazingSystem has one environment passed in as a parameter.  This allows for any environmental conditions to be used in thermal calculations.

For convenience there are methods to get the NFRC envionmnents, `pywincalc.nfrc_u_environments()` and `pywincalc.nfrc_shgc_environments()`  To create custom environments see the Environments section above.

However this means that some care should be taken when constructing glazing systems for thermal results.  The NFRC U and SHGC environments are simply standardized environmental conditions used by NFRC to generate their respective thermal result.  But any environmental conditions can be used to calculate both U and SHGC values.

For example, in the example.py file in v1 there is code to get U and SHGC values that looks like this 

```
u_results = glazing_system_single_layer.u() # calculate U-value according to ISO15099
shgc_results = glazing_system_single_layer.shgc() # calculate SHGC according to ISO15099
```

That behavior used to calculate U and SHGC from the respective built-in environments.  Now in order to do the equivalent two glazing systems need to be created:

```
glazing_system_nfrc_u_env = pywincalc.GlazingSystem(optical_standard=optical_standard, solid_layers=solid_layers, environment=pywincalc.nfrc_u_environments())
glazing_system_nfrc_shgc_env = pywincalc.GlazingSystem(optical_standard=optical_standard, solid_layers=solid_layers, environment=pywincalc.nfrc_shgc_environments())

nfrc_u_value = glazing_system_nfrc_u_env.u()
nfrc_shgc_value = glazing_system_nfrc_shgc_env.shgc()
```

Or one glazing system can be created with one set of environmental conditions, run calculations, and then change the environmental conditions and run different calculations:
```
glazing_system = pywincalc.GlazingSystem(optical_standard=optical_standard, solid_layers=solid_layers, environment=pywincalc.nfrc_u_environments())

nfrc_u_value = glazing_system.u()
glazing_system.environments(pywincalc.nfrc_shgc_environments())
nfrc_shgc_value = glazing_system.shgc()
```

#### Migrating Results

##### Migrating Optical Results
The `all_method_results` function has been renamed to `optical_method_results`.  It still requires an optical method but now also accepts optional theta and phi values for angular calculations.

The top level object returned by the `optical_method_results` now has two components: system\_results and layer\_results.  As the names imply system\_results contains results that apply to the system as a whole while layer\_results have results on a per-solid-layer basis.

Under `system_results` then it goes side (`front` or `back`), then `transmittance` or `reflectance`, then flux type (`direct-direct`, `direct-diffuse`, `direct-hemispherical`, `diffuse-diffuse`, or `matrix`)


##### Migrating Thermal Results

`GlazingSystem.u()` and `GlazingSystem.shgc()` now return single values
Both `u()` and `shgc()` take optional `theta` and `phi` values for angular calculations.  Both `theta` and `phi` default to zero so if neither are provided the result will be for normal incidence angle.

## IGSDB v2 JSON format
Note:  This should only be used for creating glazing layers with PV properties.  This format is not yet supported for any other solid layer types.

Please refer to the [generic_pv.json](https://github.com/LBNL-ETA/pyWinCalc/tree/main/examples/products/generic_pv.json) file provided for a working example.

### Fields:
 - id:  This field is required by the parser but not used in calculations.
	 - Required: Yes
	 - Allowed values:
		 - any int
		 - null
 - name: This field is required by the parser but not used in calculations.
	 - Required: Yes
	 - Allowed values:
		 - any string (including empty string)  
 - manufacturer: This field is required by the parser but not used in calculations.
	 - Required: Yes
	 - Allowed values:
		 - any string (including empty string)
 - type: This field is required by the parser but not used in calculations.
	 - Required: Yes
	 - Allowed values:
		 - any string (including empty string)
 - subtype: 	
	 - Required: Optional in general but likely required for any PV layers.
	 - Allowed values:
		 - A string equal to one of the following (case insensitive):
			 - "monolithic"
			 - "coated-glass"
			 - "coated"
			 - "applied-film"
			 - "applied film"
			 - "laminate" 
 - coated_side: 
	 - Required: Optional in general but likely required for any PV layers.
	 - Allowed values:
		 - A string equal to one of the following (case insensitive):
			 - "front"
			 - "back"
			 - "both"
			 - "neither"
			 - "na"
 - power_properties: These are values used for PV calculations.
	 - Required: Optional in general but required for any PV layers.
	 - type: A list of objects where each object has the following properties:
		 - temperature: In Kelvin
			 - Allowed values:
				 - A string that is convertible to a float.
		 - values: A list of objects with the following properties:
			 - jsc: short-circuit current density (Jsc) in solar cell [mA/cm2]
				 - Allowed values:
					 - A string that is convertible to a float.
			 - voc: open-circuit voltage (Voc) in solar cell [V]
				 - Allowed values:
					 - A string that is convertible to a float.
			 - ff: fill factor [-]
				 - Allowed values:
					 - A string that is convertible to a float.
	 - Note:  Currently only power properties for one temperature is supported.  If power properties for multiple temperatures are provided only the first will be used.
 - predefined_tir_front:
	 - Required: Optional in general.  Required for calculating results requiring IR values if wavelength measurements do not extend to the IR.
	 - Allowed values:
		 - non-null float
 - predefined_tir_back:
	 - Required: Optional in general.  Required for calculating results requiring IR values if wavelength measurements do not extend to the IR. 
	 - Allowed values:
		 - non-null float
 - predefined_emissivity_front:
	 - Required: Optional in general.  Required for calculating results requiring IR values if wavelength measurements do not extend to the IR.
	 - Allowed values:
		 - non-null float
 - predefined_emissivity_back:
	 - Required: Optional in general.  Required for calculating results requiring IR values if wavelength measurements do not extend to the IR.
	 - Allowed values:
		 - non-null float
 - thickness: Layer thickness in mm.
	 - Required: Optional in general but likely required for any PV layers.
	 - Allowed values:
		 - non-null float
 - conductivity:
	 - Required: Optional in general but likely required for any PV layers.
	 - Allowed values:
		 - non-null float
 - permeability_factor:
	 - Required: Optional
	 - Allowed values:
		 - null
		 - float
 - optical_properties:  
	 - Required: Yes.
	 - Allowed values:
		 - optical_data
	 - optical_data:
		 - Required: Yes.
		 - Note:  Currently only normal incidence values are supported.  If multiple lists of angle_blocks are provided only the first will be used and it will be treated as normal incidence.
		 - Allowed values:
			 - angle_blocks
		 - angle_blocks:
			 - Required: Yes.
			 - Allowed values:
				 - wavelength_data 
			 - wavelength_data:
				 - Required: Yes
				 - Allowed values:
					 - Object with these fields:
						 - wavelength:  The wavelength in microns
							 - Required: Yes
							 - Allowed values:
								 - A string that is convertible to a float. 
						 - specular: An object with these fields:
							 - Required: Optional
							 - tf: front surface transmittance
								 - Required: Yes
								 - Allowed values:
									 - A string that is convertible to a float.
							 - tb: back surface transmittance
								 - Required: Yes
								 - Allowed values:
									 - A string that is convertible to a float.
							 - rf: front surface reflectance
								 - Required: Yes
								 - Allowed values:
									 - A string that is convertible to a float.
							 - rb: back surface reflectance
								 - Required: Yes
								 - Allowed values:
									 - A string that is convertible to a float.
						 - pv: An object with these fields:
							 - Required: Optional
							 - eqef: front surface external quantum efficiency (EQE)
								 - Required: Yes
								 - Allowed values:
									 - A string that is convertible to a float.
							 - eqeb: back surface external quantum efficiency (EQE)
								 - Required: Yes
								 - Allowed values:
									 - A string that is convertible to a float.

## Changelog
### v3.2.0
- Added ability to model gaps with forced ventilation.  See gap #7 in [gaps_and_gases.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/gaps_and_gases.py)
- Added the ability to use measured gap deflection in deflection calculations.  See [deflection.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/deflection.py)
  - Note:  This change involves a change to the argument names in set_deflection_properties when using temperature and pressure.  Arguments are now named temperature_at_construction and pressure_at_construction to better reflect usage.

### v3.0.0
- Included optical standards with package installed from pypi.
- Added angular absorptance to layer optical results for glazing systems with a BSDF hemisphere.
- Added the ability to model vacuum gaps.
- Added the ability to integrate BSDF matrices.
- Refactored the method of creating user-defined shade layers.
- Fixes for issues creating user-defined Venetian blinds.
- Simplified and expanded examples.  Changed the names of the examples to make finding functionality easier.  Simplified the code in the examples to try to make them easier to understand.

### v2.4.2

- Changed the behavior of dual-band BSDF materials.  Now if there a system only has a single layer that is a dual band BSDF and the requested optical method is solar or photopic the layer is treated as a single band using the appropritate band values.  In all other cases the layer is created as a dual band layer as before.  This change is needed so that the single layer calculated solar and visible properties are derived from the values specified for those bands in the input data. 

### v.2.4.0

- Added the ability to use PV data.
	- Can now parse a modified subset of IGSDB v2 json format to create PV layers. 
- Layer absorptances now return separate heat and electricity values.
	- Available absoprtance results are now:  total_direct, total_diffuse, heat_direct, heat_diffuse, electricity_direct, electricity_diffuse, direct, diffuse.
	- Direct and diffuse are equal to total_direct and total_diffuse.  Direct and diffuse are deprecated.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/LBNL-ETA/pywincalc",
    "name": "pywincalc",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "LBNL",
    "author_email": "sczarnecki@lbl.gov",
    "download_url": "",
    "platform": null,
    "description": "\n\nBerkeley Lab WINDOW Calc Engine (CalcEngine) Copyright (c) 2016 - 2023, 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.\n\nIf you have questions about your rights to use or distribute this software, please contact Berkeley Lab's Innovation & Partnerships Office at IPO@lbl.gov.\n\nNOTICE.  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.\n\n\n# pywincalc\n\nThis module provides a simplified method for calculating various thermal and optical properties of glazing systems.\n\nVersion 2 has substantially more features but the interface has also changed as a result.  For help updating existing code see [Migrating from version 1](#Migrating-from-version-1)\n\nVersion 3 has additional features but should maintain compatability with code written for version 2 with the exception of cases creating user-defined shades.  Some methods of creating gases and gaps have been deprecated.  If you experience any problems updating code that creates user-defined shades to match the updated examples or problems with gaps or gases please let us know.\n\n# Table of contents\n1. [Requirements](#Requirements)\n\t1. [Windows](#Windows)\n\t2. [Linux/Mac](#Linux/Mac)\n\t3. [Building from source](#Building-from-source)\n2. [Installation](#Install)\n\t1. [From PyPi](#From-PyPi)\n\t2. [Building from source](#Building-from-source)\n\t\t1. [Building From Source On Windows](#Building-from-source-on-windows)\n3. [Use](#Use)\n\t1. [Overview](#Overview)\n\t\t1. [Optical Calculations](#Optical-Calculations)\n\t\t2. [Thermal Calculations](#Thermal-Calculations) \n\t2. [Units](#Units)\n\t3. [Optical Standards](#Optical-Standards)\n\t\t1. [Optical Standard File](#Optical-Standard-File) \n\t4. [Solid Layers](#Solid-Layers)\n\t\t1. [Supported Solid Layer Types](#Supported-solid-layer-types)\n\t5. [Gaps](#Gaps)\n\t6. [BSDF (Bidirectional scattering distribution function) Calculations](#BSDF-Calculations)\n\t7. [Example Use Cases](#Example-Use-Cases)\n\t\t1. [Examples](#Examples) \n\t8. [pywincalc objects](#pywincalc-objects)\n\t\t1. [GlazingSystem](#GlazingSystem)\n\t\t2. [Optical Results](#Optical-Results)\n\t\t\t1. [Matrix Optical Results](#Matrix-Optical-Results)\n\t\t\t2. [Color Results](#Color-Results)\n\t\t\t3. [Thermal IR Results](#Thermal-IR-Results)\n\t\t3. [Environmental Conditions](#Environmental-Conditions)\n\t\t4. [Gases](#Gases)\n\t\t\t1. [Predefined gases](#Predefined-gases)\n\t\t\t2. [Custom gases](#Custom-gases)\n\t\t\t3. [Gas mixtures](#Gas-mixtures)\n\t\t5. [Pydoc Class Documentation](#Pydoc-Class-Documentation)\n\t9. [CMA](#CMA)\n\t\t1. [Context and Background](#Context-and-Background)\n\t\t2. [THERM](#THERM)\n\t\t3. [CMA Calculations](#CMA-Calculations)\n\t\t4. [CMA Examples](#CMA-Examples)\n\t10. [Migrating from version 1](#Migrating-from-version-1)\n\t\t1.\t[Migrating Glazing_System](#Migrating-Glazing_System)\n\t\t2.\t[Migrating Results](#Migrating-Results)\n\t\t\t1. [Migrating Optical Results](#Migrating-Optical-Results)\n\t\t\t2. [Migrating Thermal Results](#Migrating-Thermal-Results)\n\t11. [IGSDB v2 JSON format](#IGSDB-v2-JSON-format) \n\t12. [Changelog](#Changelog) \n\n\n### Requirements\n\n#### Windows\nWindows requires a version of the Microsoft C++ redistributable >= the version of Visual Studio used to build the library.  Currently the wheels on pypi are generated using Visual Studio 16 2019.  However in general installing the latest version of the C++ runtime for your architecture should always be sufficient.  Installation packages are available from Microsoft here: https://docs.microsoft.com/en-US/cpp/windows/latest-supported-vc-redist\n\n#### Linux/Mac\nThe pre-built wheels provided at pypi should work on any x86/x64 version of Linux or Mac that supports at least C++17.\n\nFor M2 Macs pre-built wheels are not currently available.  From our limited testing building from source (see below) should work.  If you have experience problems building from source on a Mac using the M2 architecture please let us know.\n\n#### Building from source\n[Git](https://git-scm.com/)\n\n[CMake](https://cmake.org/) - Not required for installing from wheel files on Windows.\n\n## Install\n\n### From PyPi\nOnce any needed requirements have been installed:\n\n` pip install pywincalc `\n\n### Building from source\nOnce the requirements have been installed this project can be built from source directly from the repository by\n\n` pip install git+https://github.com/LBNL-ETA/pyWinCalc.git `\n\n#### Building from source on windows\nBuilding Python packages from source on Windows is more complicated than Mac/Linux.  First the correct C++ compiler first needs to be installed as well as CMake.  See https://wiki.python.org/moin/WindowsCompilers for more information about C++ compilers for Python packages on Windows.  Once that has been installed pyWinCalc can be built following the build from source steps.\n\n## Use\n\n### Overview\nWe recognize that there is a fair amount of complexity in the functionality provided by this library.  To attempt to mitigate this somewhat we have provided a selection of [examples](#Examples) that we hope cover all potential use cases between them.  It may be beneficial to begin by looking at whichever example(s) seem to cover your particular use case and then consulting the rest of this and other documentation.\n\nFor example, if you are interested in exploring the effect various gas fills have on glazing systems made from combinations of existing commercial glass products contained in the [IGSDB](igsdb.lbl.gov) you could look at the [gaps_and_gases](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/gaps_and_gases.py) example.\n\nOr if you are interested in seeing all of the possible optical results that can be calculated from the NFRC standard you can find them in the [optical_results_NFRC.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/optica_results_NFRC.py) example.\n\nMost of the functionality provided by pywincalc is based around a glazing system.  That is the solid and gap layers that make up a window not including frames or dividers.  One exception is CMA calculations using frames are also provided, see the [CMA](#CMA) section for more information about the CMA process and calculations.\n\nFor glazing systems calculations can be grouped into two broad categories:  optical and thermal calculations.\n\nIn the context of this program `optical` and `thermal` refer to the algorithms used to perform the calculations and not the part of the spectrum used in the calculations.  E.g. the calculation for the transmittance in the infrared spectrum is considered an optical calculation here not a thermal calculation.\n\n#### Optical Calculations\nOptical calculations are based on optical standards which are defined by `.std` files and are not affected by environmental conditions.  The optical standards define various methods that can be used to generate [optical results](#Optical-Results).\n\nSince optical standards are free to define which methods are provided as well as the names of the methods `pywincalc`provides a general way of calculating optical results via a `optical_method_results` method in the [GlazingSystem](#GlazingSystem) class.\n\nThere are a few important exceptions to this.  See the section on [optical calculation details](#Optical-Calculation-Details) for more details.\n\n#### Thermal Calculations\nCurrently only [ISO 15099](https://www.iso.org/standard/26425.html) thermal calculations are supported.\n\nThermal calculations depend on the [environmental conditions](#Environmental-Conditions) and, in some cases, optical results calculated using specific methods.  E.g. the [SHGC](https://www.energy.gov/energysaver/energy-performance-ratings-windows-doors-and-skylights) calculations can depend on optical results calculated using the `SOLAR` method from the optical standard.\n\nIt is important to note that it is possible to calculate thermal results using an optical standard that does not necessarily conform to the ISO 15099 standard so care should be used when selecting which optical standard is used for thermal calculations.\n\n### Units\n\nWith the exception of wavelength values which are in microns all units are values are in SI base units.  However for documentation some units are expressed as more common derived SI units when the values are equivalent.  For example:\n- wavelengths: microns (m<sup>-6</sup>)\n- conductivity: w\u22c5m<sup>-1</sup>\u22c5K<sup>-1</sup> because this is more common than m\u22c5kg\u22c5s<sup>\u22123</sup>\u22c5K<sup>\u22121</sup> and 1 w\u22c5m<sup>-1</sup>\u22c5K<sup>-1</sup> = 1 m\u22c5kg\u22c5s<sup>\u22123</sup>\u22c5K<sup>\u22121</sup>\n- temperature: Kelvin\n- pressure:  pascals\n- thickness: meters\n- width/height: meters\n- etc...\n\n### Optical Standards\nCalculations can be performed using predefined optical standards in the form that is expected by [WINDOW](https://windows.lbl.gov/software/window).  The path to the base standard files is all that needs to be passed.  Any other files referenced by the standard file must be in the same directory (or specified as a relative directory from within the standard file).\n\nCustom standards can be created by creating a new set of files following the same format.\n\nAs of version 3.0.0 the standards files are now bundled with the python package so there should be no longer be a need to clone the repository just to get the standards files.\n\nAs of version 3.0.0 optical_standard is no longer a required parameter for GlazingSystem.  By default a glazing system created without an optical standard will use the NFRC standard as implemented in the [W5_NFRC_2003.std](https://github.com/LBNL-ETA/pyWinCalc/blob/main/pywincalc/standards/W5_NFRC_2003.std) file.\n\nThe path to the directory the bundled standards files are in is in the `pywincalc.standard_path` variable.\n\n#### Optical Standard File\nOptical standards used by pywincalc are defined using a standards file and usually several related files referenced by the standards file.\n\nFor an example standards file see [W5_NFRC_2003.std](https://github.com/LBNL-ETA/pyWinCalc/blob/main/pywincalc/standards/W5_NFRC_2003.std)\n\nEach standards file contains sections that define the optical methods provided by the standard.  In the W5 NFRC 2003 standard file the first method defined looks like this:\n\n```\nName : SOLAR\nDescription : NFRC 300-2003 Solar\nSource Spectrum : ASTM E891 Table 1 Direct AM1_5.ssp\nDetector Spectrum : None\nWavelength Set : Source\nIntegration Rule : Trapezoidal\nMinimum Wavelength : 0.3\nMaximum Wavelength : 2.5\n```\nThe most important part for using pywincalc is the name of the method.  Since optical standard files can set anything for a name pywincalc has one generic method for calculating optical results and two other methods to handle exceptions to the generic rule:  THERMAL IR and color calculations.  See the section on [optical calculation details](#Optical-Calculations-Details) for more on those two cases.\n\nThe choice of standards file affects what can be calculated because not all files implement all methods.  For example the [prEN_410.std](https://github.com/LBNL-ETA/pyWinCalc/blob/main/pywincalc/standards/prEN_410.std) file does not contain a definition of the THERMAL IR method.\n\nCalculations that rely on specific methods will not work if the standard does not provide them.  Since the prEN_410.std files does not contain a definition for the thermal IR method the `pywincalc.calc_thermal_ir` function will not work. \n\n### Solid layers\nSolid layers define the glazing or shading products that make up a glazing system.  There are several methods for creating solid layers currently supported which use two broad categories of data sources: \n- Data files exported from either [Optics](https://windows.lbl.gov/software/optics) or the [IGSDB](https://igsdb.lbl.gov)\n- User-defined data which is data the user has obtained from some other source and needs to be transformed into data structures pywincalc recognizes.\n\nIn the examples files with \"igsdb\" in the name use data downloaded from the IGSDB.  Files with \"user_defined\" in the name show how to create objects using data supplied by the user.\n\nIt is possible to use data IGSDB in conjunction with user-defined data.  E.g. the example file [perforated_screen_user_defined_geometry_igsdb_material](https://github.com/LBNL-ETA/pyWinCalc/blob/include_standards/examples/perforated_screen_user_defined_geometry_igsdb_material.py) uses data downloaded from the IGSDB for a shade material and combines that with a user-defined geometry to create a perforated screen.\n\nHere are some examples of each method of creating a solid layer \n- For a glass layer made from measured data files as exported by Optics:  [glass_local_file.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/glass_local_file.py)\n- For a glass layer made from n-band wavelength data from a user-defined source:  [glass_user_defined_nband_data.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/glass_user_defined_nband_data.py)\n- For a glass or shade layer made from json returned from the [IGSDB](igsdb.lbl.gov): [glass_double_layer_igsdb_product.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/glass_double_layer_igsdb_product.py) or [venetian_blind_igsdb_product.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/venetian_blind_igsdb_product.py).\n- For a shade layer made from a combination of json returned by a request for a material from the [IGSDB](igsdb.lbl.gov) and user-defined geometry: [woven_shade_user_defined_geometry_igsdb_material.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/woven_shade_user_defined_geometry_igsdb_material.py)\n- For a shade layers made from a local bsdf xml file: [bsdf_shade_local_file.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/bsdf_shade_local_file.py)\n  - Shading layers that are represented by discrete BSDFs are currently a special case in the [IGSDB](igsdb.lbl.gov).  For an example of how to download them see [igsdb_interior_bsdf.py] (https://github.com/LBNL-ETA/pyWinCalc/blob/bsdf_input/examples/igsdb_interior_bsdf.py)\n- For a shade layer made from measured n-band wavelength data from some other source and user-defined geometry: [perforated_screen_user_defined_geometry_and_user_defined_nband_material.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/perforated_screen_user_defined_geometry_and_user_defined_nband_material.py)\n- For a shade layer made from dual-band wavelength data from some other source and user-defined geometry: [venetian_blind_user_defined_geometry_user_defined_dual_band_material.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/venetian_blind_user_defined_geometry_user_defined_dual_band_material.py)\n\n#### Supported solid layer types\nThe following types of solid layers are currently supported:\n- Glazings that are represented as one set of measured wavelength data.  Products that require deconstruction like some laminates and coated glass are not yet supported.\n- Venetian blinds (both horizontal and vertical)\n- Woven shades\n- Perforated screens\n- BSDF shades\n\n### Gaps\nFor systems with more than one solid layer each solid layer must be separated by a gap.  The methods for creating gaps currently supported are:\n\n- From a selection of predefined gases.  Current predefined gases are:  Air, Argon, Krypton, Xeon.\n- From a mixture of predefined gases.\n- From creating a custom gas by providing molecular weight, specific heat ratio, and coefficients for specific heat at constant pressure (Cp), thermal conductivity, and viscosity.\n- From a mixture of custom gases.\n\nAs of version 3.0.0 vacuum gaps are supported.\n\nFor examples of each see [gaps_and_gases.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/gaps_and_gases.py) in the examples directory.\n\n### BSDF Calculations\n\nShading products require BSDF calculations while glazings do not.  If any layer passed to a glazing system is a shading layer the glazing system will also require a BSDF hemisphere.  For examples see any of the shade examples e.g. [venetian_blind_local_file.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/venetian_blind_local_file.py)\n\nHowever it is possible to use BSDF calculations for a system with no shading products.  To do so pass a BSDF hemisphere as in the examples with shading systems.  For an example that also shows results that are only available for BSDF calculations see [optical_results_NFRC.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/optical_results_NFRC.py)\n\nIf a glazing system is given a BSDF hemisphere as a parameter it will always use that for optical calculations.\n\n### Example use cases\n\nSince there are several ways of creating and combining layers plus different calculation options example scripts are provided in the [/example](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/) directory.  \n\nThese scripts use optical standards that are included with pywincalc.  Some scripts use measured data for example products provided in the [/examples/products](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/products) directory.\n\nA minimum example might look like this\n```\nimport pywincalc\n\nclear_3_path = \"products/CLEAR_3.DAT\"\nclear_3 = pywincalc.parse_optics_file(clear_3_path)\n\nsolid_layers = [clear_3]\n\nglazing_system = pywincalc.GlazingSystem(solid_layers=solid_layers)\nprint(\"Single Layer U-value: {u}\".format(u=glazing_system.u()))\n```\n\nPlease see the following examples which contain more information.\n\nThe examples names have the following meanings:\n1. `igsdb` means the example downloads data from the [IGSDB](http://igsdb.lbl.gov)\n2. `user-defined` means the example does not use a completely defined existing product.  This could be anything from using a pre-defined material to make a shade to using user-defined measured spectral data.\n\nNOTE:  The igsdb examples require the python requests library and an API token for igsdb.lbl.gov.  An API token can be obtained by creating an account there.  See https://igsdb.lbl.gov/about/ for more information on creating an account.\n#### Examples\n- [minimum_example.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/minimum_example.py) The minimum example shown above.  Calculates the U-value for a single piece of generic clear glass.\n- [bsdf_integrator.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/bsdf_integrator.py): Shows how to integrate BSDF matrices to get transmittances and reflectances for each incident angle.\n- [bsdf_shade_igsdb_product.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/bsdf_shade_igsdb_product.py): Shows how to create a BSDF shade by downloading data from the IGSDB.\n- [bsdf_shade_local_file.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/bsdf_shade_local_file.py): Shows how to create a BSDF shade from a BSDF XML file stored locally.\n- [bsdf_shade_local_file.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/bsdf_shade_local_file.py): Shows how to create a BSDF shade from a BSDF XML file stored locally.\n- [cma_single_vision.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/cma_single_vision.py): Shows how to do a CMA calculation for a single-vision window and which results are available for CMA calculations.\n- [cma_double_vision_horizontal.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/cma_double_vision_horizontal.py): Shows how to do a CMA calculation for a horizontal double-vision window and which results are available for CMA calculations.\n- [cma_double_vision_vertical.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/cma_double_vision_vertical.py): Shows how to do a CMA calculation for a vertical double-vision window and which results are available for CMA calculations.\n- [deflection.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/deflection.py): Shows how to enable and set deflection properties and which deflection results are available.\n- [environmental_conditions_user_defined.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/environmental_conditions_user_defined.py): Shows how to create user-defined environmental conditions.\n- [gases.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/gases.py): Shows how to create gases and gas mixtures from predefined gas types and custom gases created from gas properties.  Then shows how to uses those gases in gap layers for the glazing system.\n- [glass_double_layer_igsdb_product.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/glass_double_layer_igsdb_product.py): Shows how to create a double layer glazing system from generic glass data downloaded from the IGSDB.\n- [glass_local_file.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/glass_local_file.py): Shows how to create a single layer glazing system from generic glass data from a local file.\n- [glass_triple_layer_local_file.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/glass_triple_layer_local_file.py): Shows how to create a triple layer glazing system from generic glass data from a local file\n- [glass_user_defined_nband_data.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/glass_user_defined_nband_data.py): Shows how to create a single layer glazing system from user-defined data.\n- [optical_results_EN_410.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/optical_results_EN_410.py): Shows how to create a glazing system using the EN-410 optical standard and all optical results available.\n- [optical_results_NFRC.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/optical_results_NFRC.py): Shows how to create a glazing system using the NFRC optical standard and all optical results available.\n- [perforated_screen_igsdb_product.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/perforated_screen_igsdb_product.py): Shows how to create a perforated screen by downloading shading layer information from the IGSDB.\n- [perforated_screen_user_defined_geometry_and_user_defined_nband_material.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/perforated_screen_user_defined_geometry_and_user_defined_nband_material.py): Shows how to create a perforated screen from user-defined n-band material data and a user-defined geometry.\n- [perforated_screen_user_defined_geometry_igsdb_material.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/perforated_screen_user_defined_geometry_igsdb_material.py): Shows how to create a perforated screen by downloading shade material data from the IGSDB and combining it with a user-defined geometry.\n- [pv_local_file.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/pv_local_file.py): Shows how to create a system with a single layer that has integrated PV data.  For information on creating a IGSDB v2 json file with PV data see the provided [generic_pv.json](https://github.com/LBNL-ETA/pyWinCalc/tree/main/examples/products/generic_pv.json) file and the [IGSDB v2 JSON format](#IGSDB-v2-JSON-format) section below.\n- [thermal_ir.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/thermal_ir.py): Shows how to calculate optical results for the thermal IR method.  Note that currently only calculations for a single solid layer are supported and these only have diffuse-diffuse transmittances and hemispherical emissivities.\n- [thermal_results_ISO_15099.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/thermal_results_ISO_15099.py): Shows all thermal results available.  Currently only ISO 15099 is supported for thermal calculations.\n- [venetian_blind_igsdb_product.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/venetian_blind_igsdb_product.py): Shows how to create a Venetian blind by downloading shading layer information from the IGSDB.\n- [venetian_blind_local_file.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/venetian_blind_local_file.py): Shows how to create a Venetian blind by using shading layer information stored in a local file.\n- [venetian_blind_user_defined_geometry_igsdb_material.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/venetian_blind_user_defined_geometry_igsdb_material.py): Shows how to create a Venetian blind from material data downloaded from the IGSDB and a user-defined geometry.\n- [venetian_blind_user_defined_geometry_user_defined_dual_band_material.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/venetian_blind_user_defined_geometry_user_defined_dual_band_material.py): Shows how to create a Venetian blind from user-defined dual-band material data and a user-defined geometry.\n- [vertical_venetian_user_defined_geometry_igsdb_material.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/vertical_venetian_user_defined_geometry_igsdb_material.py): Shows how to create a vertical Venetian blind from material data downloaded from the IGSDB and a user-defined geometry.\n- [woven_shade_user_defined_geometry_igsdb_material.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/woven_shade_user_defined_geometry_igsdb_material.py): Shows how to create a woven shade from material data downloaded from the IGSDB and a user-defined geometry.\n\n#### Non-example files\nThese are files in the example folder that provide some functionality but are not calculation examples.\n- [igsdb_interaction.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/igsdb_interaction.py): Encapsulates some basic interaction with the [IGSDB](http://igsdb.lbl.gov)\n\nIf there is something you are trying to calculate that does not exist as an example yet please contact us.\n\n### pywincalc objects\n\n#### GlazingSystem\nAs of version 3.0.0 if you create a GlazingSystem without an optical standard it will default to using the NFRC optical standard and optical_standard is not required.\n- Constructor:  \n    - Requires parameters:  \n        - solid_layers\n    - Optional parameters:\n        - optical_standard  Defaults to NFRC\n        - gap_layers  Defaults to no gap layers.  If more than one solid layer is provided then len(solid_layers) - 1 gap_layers must be provided\n        - width_meters  Defaults to 1.0 meters\n        - height_meters  Defaults to 1.0 meters\n        - environment  Defaults to NFRC U environment\n        - bsdf_hemisphere  Defaults to no BSDF hemisphere. Required if any solid layers require BSDF calculations.\n        - spectral_data_wavelength_range_method  Defaults to full wavelength range.\n        - number_visible_bands  Defaults to 5.  Not used if spectral_data_wavelength_range_method is set to full. \n        - number_solar_bands  Defaults to 10.  Not used if spectral_data_wavelength_range_method is set to full. \n- Available calculation methods.\n    - Thermal\n        - u(theta=0, phi=0) Calculates the U-value for the system at incidence angle theta and phi\n        - shgc(theta=0, phi=0) Calculates the SHGC value for the system at incidence angle theta and phi\n        - layer_temperatures(TarcogSystemType, theta=0, phi=0)  Calculates the temperature at each layer based on the given TarcogSystemType (U or SHGC) at theta and phi incidence angle.  Returns a list of temperatures for each solid layer in K.  Note that the TarcogSystemType is specifying the calculation methodology for this calculation which is independed of the environment used to construct the GlazingSystem.  When U system is passed as a parameter the layer temperatures will be calculated for the given environments without taking solar radiation into account.  When SHGC system is passed as a parameter solar radiation is taken into account.\n        - solid_layers_effective_conductivities(TarcogSystemType, theta=0, phi=0)  Calculates the effective conductivity for each solid layer based on the given TarcogSystemType (U or SHGC) at theta and phi incidence angle.  Returns a list of effective conductivities for each solid layer.  See note in layer_temperatures for the meaning of the TarcogSystemType parameter.\n        - gap_layers_effective_conductivities(TarcogSystemType, theta=0, phi=0)  Calculates the effective conductivity for each gap layer based on the given TarcogSystemType (U or SHGC) at theta and phi incidence angle.  Returns a list of effective conductivities for each gap layer.  See note in layer_temperatures for the meaning of the TarcogSystemType parameter.\n        - system_effective_conductivities(TarcogSystemType, theta=0, phi=0)  Calculates the effective conductivity for the entire system based on the given TarcogSystemType (U or SHGC) at theta and phi incidence angle.  Returns a single value.  See note in layer_temperatures for the meaning of the TarcogSystemType parameter.\n    - Optical\n        - optical_method_results(method_name, theta=0, phi=0)  Calculates all optical results for the method in the optical standard with the name of `method_name` at theta and phi incidence angle.  Returns an `OpticalResults` object containing all of the results.  See [Optical Results](Optical-Results) section below.\n        - color(theta=0, phi=0) Calculates color results and theta and phi incidence angle.  Returns a ColorResults object.  See the Color Results section in Optical Results below.\n\n##### Optical Calculations Details\nMost optical results can be calculated by passing the name of the optical method to the `optical_method_results`method of the `GlazingSystem`.  However there are two exceptions:\n\n1. Colors.  Color calculations are calculated using three tristimulus optical methods, not one.  In the [NFRC standard](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/standards/W5_NFRC_2003.std) provided these three methods are named `COLOR_TRISTIMX`, `COLOR_TRISTIMY`, and `COLOR_TRISTIMZ`.  While it is possible to calculate results for each of these methods individually the results will not give accurate color information.\n2. `THERMAL IR`method.  Thermal IR optical results are only available for a single layer and cannot be calculated for a system.  These results should be calculated using the `calc_thermal_ir`function.\n\n#### Optical Results\nThere are two types of optical results available: those calculated from any method that is not a color method and color results.  Color calculations are a special case and therefore have their own method used to calculate them and their own results structure.  The differences between color results and other optical results is discussed in the section below.\n\nAn `OpticalResults` object has two parts: `system_results` and `layer_results`.\n\n`system_results` apply to the system as a whole and are objects nested as follows:  `system_results.side.transmission_type.flux_type` With the following options available for each\n\n- side:  `front`, `back`\n- transmission_type: `transmittance`, `reflectance`\n- flux_type: `direct_direct`, `direct_diffuse`, `direct_hemispherical`, `diffuse_diffuse`, `matrix`\n    - Note:  `direct_hemisperical` = `direct_direct` + `direct_diffuse`\n\nE.g. the direct-diffuse front reflectance is `system_results.front.reflectance.direct_diffuse`\n\n`layer_results` contain a list of results corresponding to each solid layer.  Results for both sides are provided for each layer.  Currently the only supported result per side is absorptance.  Absorptance is available for both direct and diffuse cases.\n\nAs of version 2.4.0 absorptance results are available as heat and electricity.  Electricity absoprtance is only non-zero for layers with PV data.  The following results are available for each side of each layer:\n`total_direct, total_diffuse, heat_direct, heat_diffuse, electricity_direct, electricity_diffuse, direct, diffuse` NOTE: direct and diffuse are deprecated and equal to total_direct and total_diffuse.  \n\nAs of version 3.0.0 angular absorptance results are also available.  These results are only available for systems that have a BSDF hemisphere.\n\nE.g the diffuse back absorptance for the first solid layer is `layer_results[0].back.absorptance.diffuse`\n\n##### Matrix Optical Results\nMatrix results are only available for systems that have a BSDF basis.  See the section on [BSDF Calculations](#BSDF-Calculations) for information on how to create and use a BSDF basis.  For systems with a BSDF basis the matrix result is a square matrix of the same size as the number of patches in the basis.  \n\n##### Color Results\nThe structure of color results is similar to, but different from, the structure of other optical results.  There are two main differences.  First individual layer results are not yet supported for colors.  And second instead of one value at each flux type (direct-direct, direct-diffuse, etc...) color results have RGB, Lab, and Trichromatic values.  Those represent the same result mapped into three common color spaces for convenience.  \n\nSo while for other results `results.front.transmittance.direct_direct` would return a single value for colors that returns an object that contains RGB, Lab, and Trichromatic objects.  E.g. to get the RGB blue value from a color result this is required: `results.front.transmittance.direct_direct.rgb.B`\n\n##### Thermal IR Results\nThermal IR results are only available for a single layer and only have four results available.  They are:\n1. `transmittance_front_diffuse_diffuse`\n2. `transmittance_back_diffuse_diffuse`\n3. `emissivity_front_hemispheric`\n4. `emissivity_back_hemispheric`\n\n#### Environmental Conditions\nEnvironmental conditions consists of two parts:  the inside and outside environment.  The exterior environment will be used as the environment before the first solid layer in the system and the interior environment will be used after the last solid layer in the system.  Each contains the same fields.  To use custom values for thermal calculations create an Environments object from inside and outside Environment objects. See [environmental_conditions_user_defined.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/environmental_conditions_user_defined.py)\n\nEnvironment fields:\n- air_temperature\n- pressure\n- convection_coefficient\n- coefficient_model\n- radiation_temperature\n- emissivity\n- air_speed\n- air_direction\n- direct_solar_radiation\n\nPre-constructed NFRC U and SHGC environments are available by calling `pywincalc.nfrc_u_environments()` and `pywincalc.nfrc_shgc_environments()`\n\n#### Gases\nThere are several options for gases.  Gases can be created either from pre-defined gases (e.g. Air, Argon, etc...), by supplying physical parameters to create arbitrary custom gases, or by mixtures containing either predefined or custom gases.\n\n##### Predefined gases\nGases can be created from a `PredefinedGasType`.  Current supported predefined gas types are: AIR, ARGON, KRYPTON, and XENON.\n\nAs of version 3.0.0 the below is deprecated.  See See [gaps_and_gases.py](https://github.com/LBNL-ETA/pyWinCalc/blob/include_standards/examples/gaps_and_gases.py) for the new method of creating gases.\n\nA gap layer can be created from a predefined gas type like so:\n```\ngap_1 = pywincalc.Gap(pywincalc.PredefinedGasType.AIR, .0127)  # .0127 is gap thickness in meters\n```\n\n##### Custom gases\nA `CustomGasData` object can be created by providing the following information:\n- Name\n- molecular_weight\n- specific_heat_ratio\n- Cp\n   - Expressed as a GasCoefficients object with A, B, and C fields.\n- thermal_conductivity\n    - Expressed as a GasCoefficients object with A, B, and C fields.\n- viscosity\n   - Expressed as a GasCoefficients object with A, B, and C fields.\n\nSee [gaps_and_gases.py](https://github.com/LBNL-ETA/pyWinCalc/blob/include_standards/examples/gaps_and_gases.py) for more on creating custom gases.\n\n##### Gas mixtures\nGas mixtures can be created from custom and predefined gases by specifying the percentage of each in the mixtures.\n\nAs of version 3.0.0 the below is deprecated.  See [gaps_and_gases.py](https://github.com/LBNL-ETA/pyWinCalc/blob/include_standards/examples/gaps_and_gases.py) for the new method of creating gases.\n\n```\n# The following creates a gas that is 80% sulfur hexafluoride, 15% Argonm and 5% Air\ngap_4_component_1 = pywincalc.CustomGasMixtureComponent(sulfur_hexafluoride, 0.8)\ngap_4_component_2 = pywincalc.PredefinedGasMixtureComponent(pywincalc.PredefinedGasType.ARGON, .15)\ngap_4_component_3 = pywincalc.PredefinedGasMixtureComponent(pywincalc.PredefinedGasType.AIR, .05)\ngap_4 = pywincalc.Gap([gap_4_component_1, gap_4_component_2, gap_4_component_3], .025)  # 2.5mm thick gap\n```\n\n#### Pydoc Class Documentation\nComplete class documentation generated by pydoc can be found here: https://github.com/LBNL-ETA/pyWinCalc/blob/main/pywincalc_class_documentation.html\n\n## CMA\n\n### Context and Background\n\nSee this paper for context and background about the CMA modeling process: [Component Modeling Methodology for Predicting Thermal Performance of Non-Residential Fenestration Systems](https://github.com/LBNL-ETA/pyWinCalc/blob/CMA/docs/Component_Modeling_Methodology.pdf)\n\n### THERM\n\nIn THERM, when inserting a glazing system, on the first Glazing Systems dialog box, instead of clicking the \"Import\" button, click the \"NFRC CMA...\" button. This will take you to a special \"Insert Glazing System\" dialog box specifically for the CMA calculation. The THMX file created when this THERM file is saved has the required CMA information in it for use with the pyWinCalc code.\n\n### CMA Calculations\n\nThe CMA calculation process can be summarized with the following steps:\n1. Create frames and spacer thmx CMA files in THERM.  See previous section for the correct way to do this.\n2. Parse the thmx files using pywincalc.parse_thmx_file\n3. Get the effective conductivity for the spacer using pywincalc.get_spacer_keff\n4. Create a CMA window.  Currently three configurations are supported: pywincalc.get_cma_window_single_vision, pywincalc.get_cma_window_double_vision_vertical, and pywincalc.get_cma_window_double_vision_horizontal.\n5. Get CMA results by calling pywincalc.calc_cma with the CMA window from step 4, the glazing system U, SHGC, and visibile transmittance, and the spacer keff from step 3.  Note:  The glazing system values can be calculated using a pywincalc.GlazingSystem (see glazing system examples above) or from other sources.  However the dimensions of the glazing system used calculate those results should match the dimensions that will be used in the CMA window.  pywincalc.CMAWindow provides a glazing_system_dimensions function that will return the appropriate glazing system size.\n\n### CMA Examples\nThe examples folder has the following examples:\n\n- [cma_single_vision.py](https://github.com/LBNL-ETA/pyWinCalc/blob/CMA/examples/cma_single_vision.py): Perform a CMA calculation for a single vision window using sample THERM frames and spacer thmx files and precalculated glazing system results.\n- [cma_double_vision_vertical.py](https://github.com/LBNL-ETA/pyWinCalc/blob/CMA/examples/cma_double_vision_vertical.py): Perform a CMA calculation for a double vision vertical window using sample THERM frames and spacer thmx files and precalculated glazing system results.\n- [cma_double_vision_horizontal.py](https://github.com/LBNL-ETA/pyWinCalc/blob/CMA/examples/cma_double_vision_horizontal.py): Perform a CMA calculation for a double vision horizontal using sample THERM frames and spacer thmx files and precalculated glazing system results.\n- [cma_single_vision_igsdb_parametric.py](https://github.com/LBNL-ETA/pyWinCalc/blob/CMA/examples/cma_double_vision_horizontal.py): An example of how a parametric calculation might be performed.  Makes all possible double layer glazing systems from IGSDB glazing records with the inner layer set to generic clear 3mm glass.  Runs CMA calculations on them using sample frames and spacers.  Reports the systems with the highest and lowest U, SHGC, and visible transmittance.\n\n## Migrating from version plder versions\n\n# From version 2 to 3\n\nMost of the interface in version 2 should work in version 3 with the exception of user-defined shades.  Creating shades with user-defined data should hopefully be easier and clearer.  There are now factory methods for each non-BSDF shade type: `create_perforated_screen`, `create_venetian_blind` and `create_woven_shade`.  See [perforated_screen_user_defined_geometry_and_user_defined_nband_material.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/perforated_screen_user_defined_geometry_and_user_defined_nband_material.py), [perforated_screen_user_defined_geometry_igsdb_material.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/perforated_screen_user_defined_geometry_igsdb_material.py), [venetian_blind_user_defined_geometry_igsdb_material.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/venetian_blind_user_defined_geometry_igsdb_material.py), [venetian_blind_user_defined_geometry_user_defined_dual_band_material.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/venetian_blind_user_defined_geometry_user_defined_dual_band_material.py), [vertical_venetian_user_defined_geometry_igsdb_material.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/vertical_venetian_user_defined_geometry_igsdb_material.py), or [woven_shade_user_defined_geometry_igsdb_material.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/woven_shade_user_defined_geometry_igsdb_material.py)\n\nCreating gases and gaps has changed but the prior interface has been retained and flagged as deprecated.  If you run into any problems with existing code and cannot easily convert it following the examples in [gaps_and_gases.py](https://github.com/LBNL-ETA/pyWinCalc/blob/include_standards/examples/gaps_and_gases.py) contact us and hopefully we will be able to help.\n\n# From version 1\n\nThere were several interface changes that resulted from the new functionality.  These changes are mostly contained in two places:  The GlazingSystem constructor and the results structures.  Each section will start with a guide on how to convert existing code and will follow with some rational and explination.  This conversion will convert the code in the v1 example.py file to code that will work in v2.\n\n```python \n# Code prior to line 16 in the v1 example.py does not need to be changed\n\n# v1 code\nglazing_system_single_layer = pywincalc.Glazing_System(solid_layers, gaps, standard, width, height)\nu_results = glazing_system_single_layer.u() # calculate U-value according to ISO15099\nprint(\"Single Layer U-value: {u}\".format(u=u_results.result))\n\n# v2 code\nglazing_system_single_layer = pywincalc.GlazingSystem(optical_standard=optical_standard, solid_layers=solid_layers, width=width, height=height, environment=pywincalc.nfrc_u_environments())\nu_result = glazing_system_single_layer.u() # calculate U-value according to ISO15099\nprint(\"Single Layer U-value: {u}\".format(u=u_result))\n\n# These results are not available in the thermal results but are available in optical results\n# See the section on available optical results for how to obtain them\nprint(\"Single Layer u t_sol: {t}\".format(t=u_results.t_sol))\nprint(\"Single Layer u solar absorptances per layer: {a}\".format(a=u_results.layer_solar_absorptances))\n\n#v1 code \nshgc_results = glazing_system_single_layer.shgc() # calculate SHGC according to ISO15099\nprint(\"Single Layer SHGC: {shgc}\".format(shgc=shgc_results.result))\n\n# v2 code\n# Important Note:  While it is still possible to calculate the SHGC value for the \n# glazing_system_single_layer system created above it will do so using the NFRC U \n# environments.  This will not result in the same SHGC as before.  To achieve the\n# same SHGC as before a glazing system with the correct environment needs to be created\n\nglazing_system_single_layer_nfrc_shgc_env = pywincalc.GlazingSystem(optical_standard=optical_standard, solid_layers=solid_layers, width=width, height=height, environment=pywincalc.nfrc_shgc_environments())\nshgc_result = glazing_system_single_layer_nfrc_shgc_env.shgc() # calculate SHGC according to ISO15099\nprint(\"Single Layer SHGC: {shgc}\".format(shgc=shgc_result))\n\n# v1 code\n# These results are not available in the thermal results but are available in optical results\n# See the section on available optical results for how to obtain them\nprint(\"Single Layer SHGC t_sol: {t}\".format(t=shgc_results.t_sol))\nprint(\"Single Layer SHGC solar absorptances per layer: {a}\".format(a=shgc_results.layer_solar_absorptances))\n\n#v1 code\nsolar_optical_results_single_layer = glazing_system_single_layer.all_method_values(pywincalc.Method_Type.SOLAR)\n\n# v2 code\nsolar_optical_results_single_layer = glazing_system_single_layer.optical_method_results(\"SOLAR\")\n\n# v1 code\nprint(\"Single Layer Solar optical transmittance front direct-direct: {r}\".format(r=solar_optical_results_single_layer.direct_direct.tf))\n\n# v2 code\nprint(\"Single Layer Solar optical transmittance front direct-direct: {r}\".format(r=solar_optical_results_single_layer.system_results.front.transmittance.direct_direct))\n\n# v1 code\ngap_1 = pywincalc.Gap_Data(pywincalc.Gas_Type.AIR, .0127) # .0127 is gap thickness in meters\ngap_2 = pywincalc.Gap_Data(pywincalc.Gas_Type.ARGON, .02) # .02 is gap thickness in meters\n\n# v2 code\ngap_1 = pywincalc.Gap(pywincalc.PredefinedGasType.AIR, .0127)  # .0127 is gap thickness in meters\ngap_2 = pywincalc.Gap_Data(pywincalc.PredefinedGasType.ARGON, .02) # .02 is gap thickness in meters\n\n# v1 code\ntf_rgb_results_triple_layer = color_results_triple_layer.direct_direct.tf.rgb\nprint(\"Triple Layer color results transmittance front direct-direct RGB: ({r}, {g}, {b})\".format(r=tf_rgb_results_triple_layer.R, g=tf_rgb_results_triple_layer.G, b=tf_rgb_results_triple_layer.B))\n\n# v2 code\ntf_rgb_results_triple_layer = color_results_triple_layer.system_results.front.transmittance.direct_direct.rgb\nprint(\"Triple Layer color results transmittance front direct-direct RGB: ({r}, {g}, {b})\".format(r=tf_rgb_results_triple_layer.R, g=tf_rgb_results_triple_layer.G, b=tf_rgb_results_triple_layer.B))\n```\n\n#### Migrating Glazing_System\n\n\nFirst Glazing_System was changed to GlazingSystem to be more in line with python's naming conventions.\n\nSecond the GlazingSystem constructor parameter order changed and there are additional paramters that can be passed in. All parameters are now able to be passed using keywords.  e.g.\n\n`glazing_system = pywincalc.GlazingSystem(optical_standard=optical_standard, solid_layers=solid_layers)`\n\nFinally there is a change to how environmental conditions are handled.  In v1 GlazingSystem had two built-in environments -- NFRC U and NFRC SHGC.  In v2 a GlazingSystem has one environment passed in as a parameter.  This allows for any environmental conditions to be used in thermal calculations.\n\nFor convenience there are methods to get the NFRC envionmnents, `pywincalc.nfrc_u_environments()` and `pywincalc.nfrc_shgc_environments()`  To create custom environments see the Environments section above.\n\nHowever this means that some care should be taken when constructing glazing systems for thermal results.  The NFRC U and SHGC environments are simply standardized environmental conditions used by NFRC to generate their respective thermal result.  But any environmental conditions can be used to calculate both U and SHGC values.\n\nFor example, in the example.py file in v1 there is code to get U and SHGC values that looks like this \n\n```\nu_results = glazing_system_single_layer.u() # calculate U-value according to ISO15099\nshgc_results = glazing_system_single_layer.shgc() # calculate SHGC according to ISO15099\n```\n\nThat behavior used to calculate U and SHGC from the respective built-in environments.  Now in order to do the equivalent two glazing systems need to be created:\n\n```\nglazing_system_nfrc_u_env = pywincalc.GlazingSystem(optical_standard=optical_standard, solid_layers=solid_layers, environment=pywincalc.nfrc_u_environments())\nglazing_system_nfrc_shgc_env = pywincalc.GlazingSystem(optical_standard=optical_standard, solid_layers=solid_layers, environment=pywincalc.nfrc_shgc_environments())\n\nnfrc_u_value = glazing_system_nfrc_u_env.u()\nnfrc_shgc_value = glazing_system_nfrc_shgc_env.shgc()\n```\n\nOr one glazing system can be created with one set of environmental conditions, run calculations, and then change the environmental conditions and run different calculations:\n```\nglazing_system = pywincalc.GlazingSystem(optical_standard=optical_standard, solid_layers=solid_layers, environment=pywincalc.nfrc_u_environments())\n\nnfrc_u_value = glazing_system.u()\nglazing_system.environments(pywincalc.nfrc_shgc_environments())\nnfrc_shgc_value = glazing_system.shgc()\n```\n\n#### Migrating Results\n\n##### Migrating Optical Results\nThe `all_method_results` function has been renamed to `optical_method_results`.  It still requires an optical method but now also accepts optional theta and phi values for angular calculations.\n\nThe top level object returned by the `optical_method_results` now has two components: system\\_results and layer\\_results.  As the names imply system\\_results contains results that apply to the system as a whole while layer\\_results have results on a per-solid-layer basis.\n\nUnder `system_results` then it goes side (`front` or `back`), then `transmittance` or `reflectance`, then flux type (`direct-direct`, `direct-diffuse`, `direct-hemispherical`, `diffuse-diffuse`, or `matrix`)\n\n\n##### Migrating Thermal Results\n\n`GlazingSystem.u()` and `GlazingSystem.shgc()` now return single values\nBoth `u()` and `shgc()` take optional `theta` and `phi` values for angular calculations.  Both `theta` and `phi` default to zero so if neither are provided the result will be for normal incidence angle.\n\n## IGSDB v2 JSON format\nNote:  This should only be used for creating glazing layers with PV properties.  This format is not yet supported for any other solid layer types.\n\nPlease refer to the [generic_pv.json](https://github.com/LBNL-ETA/pyWinCalc/tree/main/examples/products/generic_pv.json) file provided for a working example.\n\n### Fields:\n - id:  This field is required by the parser but not used in calculations.\n\t - Required: Yes\n\t - Allowed values:\n\t\t - any int\n\t\t - null\n - name: This field is required by the parser but not used in calculations.\n\t - Required: Yes\n\t - Allowed values:\n\t\t - any string (including empty string)  \n - manufacturer: This field is required by the parser but not used in calculations.\n\t - Required: Yes\n\t - Allowed values:\n\t\t - any string (including empty string)\n - type: This field is required by the parser but not used in calculations.\n\t - Required: Yes\n\t - Allowed values:\n\t\t - any string (including empty string)\n - subtype: \t\n\t - Required: Optional in general but likely required for any PV layers.\n\t - Allowed values:\n\t\t - A string equal to one of the following (case insensitive):\n\t\t\t - \"monolithic\"\n\t\t\t - \"coated-glass\"\n\t\t\t - \"coated\"\n\t\t\t - \"applied-film\"\n\t\t\t - \"applied film\"\n\t\t\t - \"laminate\" \n - coated_side: \n\t - Required: Optional in general but likely required for any PV layers.\n\t - Allowed values:\n\t\t - A string equal to one of the following (case insensitive):\n\t\t\t - \"front\"\n\t\t\t - \"back\"\n\t\t\t - \"both\"\n\t\t\t - \"neither\"\n\t\t\t - \"na\"\n - power_properties: These are values used for PV calculations.\n\t - Required: Optional in general but required for any PV layers.\n\t - type: A list of objects where each object has the following properties:\n\t\t - temperature: In Kelvin\n\t\t\t - Allowed values:\n\t\t\t\t - A string that is convertible to a float.\n\t\t - values: A list of objects with the following properties:\n\t\t\t - jsc: short-circuit current density (Jsc) in solar cell [mA/cm2]\n\t\t\t\t - Allowed values:\n\t\t\t\t\t - A string that is convertible to a float.\n\t\t\t - voc: open-circuit voltage (Voc) in solar cell [V]\n\t\t\t\t - Allowed values:\n\t\t\t\t\t - A string that is convertible to a float.\n\t\t\t - ff: fill factor [-]\n\t\t\t\t - Allowed values:\n\t\t\t\t\t - A string that is convertible to a float.\n\t - Note:  Currently only power properties for one temperature is supported.  If power properties for multiple temperatures are provided only the first will be used.\n - predefined_tir_front:\n\t - Required: Optional in general.  Required for calculating results requiring IR values if wavelength measurements do not extend to the IR.\n\t - Allowed values:\n\t\t - non-null float\n - predefined_tir_back:\n\t - Required: Optional in general.  Required for calculating results requiring IR values if wavelength measurements do not extend to the IR. \n\t - Allowed values:\n\t\t - non-null float\n - predefined_emissivity_front:\n\t - Required: Optional in general.  Required for calculating results requiring IR values if wavelength measurements do not extend to the IR.\n\t - Allowed values:\n\t\t - non-null float\n - predefined_emissivity_back:\n\t - Required: Optional in general.  Required for calculating results requiring IR values if wavelength measurements do not extend to the IR.\n\t - Allowed values:\n\t\t - non-null float\n - thickness: Layer thickness in mm.\n\t - Required: Optional in general but likely required for any PV layers.\n\t - Allowed values:\n\t\t - non-null float\n - conductivity:\n\t - Required: Optional in general but likely required for any PV layers.\n\t - Allowed values:\n\t\t - non-null float\n - permeability_factor:\n\t - Required: Optional\n\t - Allowed values:\n\t\t - null\n\t\t - float\n - optical_properties:  \n\t - Required: Yes.\n\t - Allowed values:\n\t\t - optical_data\n\t - optical_data:\n\t\t - Required: Yes.\n\t\t - Note:  Currently only normal incidence values are supported.  If multiple lists of angle_blocks are provided only the first will be used and it will be treated as normal incidence.\n\t\t - Allowed values:\n\t\t\t - angle_blocks\n\t\t - angle_blocks:\n\t\t\t - Required: Yes.\n\t\t\t - Allowed values:\n\t\t\t\t - wavelength_data \n\t\t\t - wavelength_data:\n\t\t\t\t - Required: Yes\n\t\t\t\t - Allowed values:\n\t\t\t\t\t - Object with these fields:\n\t\t\t\t\t\t - wavelength:  The wavelength in microns\n\t\t\t\t\t\t\t - Required: Yes\n\t\t\t\t\t\t\t - Allowed values:\n\t\t\t\t\t\t\t\t - A string that is convertible to a float. \n\t\t\t\t\t\t - specular: An object with these fields:\n\t\t\t\t\t\t\t - Required: Optional\n\t\t\t\t\t\t\t - tf: front surface transmittance\n\t\t\t\t\t\t\t\t - Required: Yes\n\t\t\t\t\t\t\t\t - Allowed values:\n\t\t\t\t\t\t\t\t\t - A string that is convertible to a float.\n\t\t\t\t\t\t\t - tb: back surface transmittance\n\t\t\t\t\t\t\t\t - Required: Yes\n\t\t\t\t\t\t\t\t - Allowed values:\n\t\t\t\t\t\t\t\t\t - A string that is convertible to a float.\n\t\t\t\t\t\t\t - rf: front surface reflectance\n\t\t\t\t\t\t\t\t - Required: Yes\n\t\t\t\t\t\t\t\t - Allowed values:\n\t\t\t\t\t\t\t\t\t - A string that is convertible to a float.\n\t\t\t\t\t\t\t - rb: back surface reflectance\n\t\t\t\t\t\t\t\t - Required: Yes\n\t\t\t\t\t\t\t\t - Allowed values:\n\t\t\t\t\t\t\t\t\t - A string that is convertible to a float.\n\t\t\t\t\t\t - pv: An object with these fields:\n\t\t\t\t\t\t\t - Required: Optional\n\t\t\t\t\t\t\t - eqef: front surface external quantum efficiency (EQE)\n\t\t\t\t\t\t\t\t - Required: Yes\n\t\t\t\t\t\t\t\t - Allowed values:\n\t\t\t\t\t\t\t\t\t - A string that is convertible to a float.\n\t\t\t\t\t\t\t - eqeb: back surface external quantum efficiency (EQE)\n\t\t\t\t\t\t\t\t - Required: Yes\n\t\t\t\t\t\t\t\t - Allowed values:\n\t\t\t\t\t\t\t\t\t - A string that is convertible to a float.\n\n## Changelog\n### v3.2.0\n- Added ability to model gaps with forced ventilation.  See gap #7 in [gaps_and_gases.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/gaps_and_gases.py)\n- Added the ability to use measured gap deflection in deflection calculations.  See [deflection.py](https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/deflection.py)\n  - Note:  This change involves a change to the argument names in set_deflection_properties when using temperature and pressure.  Arguments are now named temperature_at_construction and pressure_at_construction to better reflect usage.\n\n### v3.0.0\n- Included optical standards with package installed from pypi.\n- Added angular absorptance to layer optical results for glazing systems with a BSDF hemisphere.\n- Added the ability to model vacuum gaps.\n- Added the ability to integrate BSDF matrices.\n- Refactored the method of creating user-defined shade layers.\n- Fixes for issues creating user-defined Venetian blinds.\n- Simplified and expanded examples.  Changed the names of the examples to make finding functionality easier.  Simplified the code in the examples to try to make them easier to understand.\n\n### v2.4.2\n\n- Changed the behavior of dual-band BSDF materials.  Now if there a system only has a single layer that is a dual band BSDF and the requested optical method is solar or photopic the layer is treated as a single band using the appropritate band values.  In all other cases the layer is created as a dual band layer as before.  This change is needed so that the single layer calculated solar and visible properties are derived from the values specified for those bands in the input data. \n\n### v.2.4.0\n\n- Added the ability to use PV data.\n\t- Can now parse a modified subset of IGSDB v2 json format to create PV layers. \n- Layer absorptances now return separate heat and electricity values.\n\t- Available absoprtance results are now:  total_direct, total_diffuse, heat_direct, heat_diffuse, electricity_direct, electricity_diffuse, direct, diffuse.\n\t- Direct and diffuse are equal to total_direct and total_diffuse.  Direct and diffuse are deprecated.\n",
    "bugtrack_url": null,
    "license": "BSD 3-clause",
    "summary": "A Python library for calculating thermal and optical properties of glazing systems",
    "version": "3.3.1",
    "project_urls": {
        "Homepage": "https://github.com/LBNL-ETA/pywincalc"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6511e1101eece5023b507890bf57fe9b7858e81d85466c1e6e2c7246c551a761",
                "md5": "71fb83e5cb01a4a688350c70650bd9b1",
                "sha256": "3cebca91109bcd03daa7ace142c71d0ce60b31ff251767c52779e060499f2ace"
            },
            "downloads": -1,
            "filename": "pywincalc-3.3.1-cp310-cp310-macosx_12_0_x86_64.whl",
            "has_sig": false,
            "md5_digest": "71fb83e5cb01a4a688350c70650bd9b1",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": null,
            "size": 1265489,
            "upload_time": "2023-08-29T21:11:03",
            "upload_time_iso_8601": "2023-08-29T21:11:03.518803Z",
            "url": "https://files.pythonhosted.org/packages/65/11/e1101eece5023b507890bf57fe9b7858e81d85466c1e6e2c7246c551a761/pywincalc-3.3.1-cp310-cp310-macosx_12_0_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c8375078878315a19c977de5694f70b9743e2248a4db795c23a404ea7c619c30",
                "md5": "e81c527a718595a7ff3ed2646d3499f2",
                "sha256": "33b8d145c46fdda9fae0d3869abda6349449813f70409cc75fe8454973ff10ec"
            },
            "downloads": -1,
            "filename": "pywincalc-3.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "e81c527a718595a7ff3ed2646d3499f2",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": null,
            "size": 1679702,
            "upload_time": "2023-08-29T21:11:06",
            "upload_time_iso_8601": "2023-08-29T21:11:06.176168Z",
            "url": "https://files.pythonhosted.org/packages/c8/37/5078878315a19c977de5694f70b9743e2248a4db795c23a404ea7c619c30/pywincalc-3.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "db3a0d983d08a344cac2c1c5185fcd638e412cbf4d0dc543dc335874d54756fd",
                "md5": "49f7dfd9b00a5e77a2bb713dc770dc4b",
                "sha256": "bd4ce3c73f9e4690bcf985e5d86fc16e9fcdf554b4527669d3c51943ab6907f3"
            },
            "downloads": -1,
            "filename": "pywincalc-3.3.1-cp310-cp310-win32.whl",
            "has_sig": false,
            "md5_digest": "49f7dfd9b00a5e77a2bb713dc770dc4b",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": null,
            "size": 1004798,
            "upload_time": "2023-08-29T21:11:08",
            "upload_time_iso_8601": "2023-08-29T21:11:08.306225Z",
            "url": "https://files.pythonhosted.org/packages/db/3a/0d983d08a344cac2c1c5185fcd638e412cbf4d0dc543dc335874d54756fd/pywincalc-3.3.1-cp310-cp310-win32.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e656c4b4618cc0cfbf0e284b8a1680d8fb56a6244e4b336821aaa327f7c02c80",
                "md5": "a5fa52c208b24dd04fc4fd22e5eba3c4",
                "sha256": "78998a5b73f443fd636c785810a929784b125a024b2ecc2a6ec12afcee9dbe57"
            },
            "downloads": -1,
            "filename": "pywincalc-3.3.1-cp310-cp310-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "a5fa52c208b24dd04fc4fd22e5eba3c4",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": null,
            "size": 1117282,
            "upload_time": "2023-08-29T21:11:10",
            "upload_time_iso_8601": "2023-08-29T21:11:10.411991Z",
            "url": "https://files.pythonhosted.org/packages/e6/56/c4b4618cc0cfbf0e284b8a1680d8fb56a6244e4b336821aaa327f7c02c80/pywincalc-3.3.1-cp310-cp310-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d149eda2ede9b3c6ca98bfa89cd1a0e1a3fff1fb22fc3d8474e398d22964328e",
                "md5": "6d04daf9088a9ed1ec30b8e20dd0ceb8",
                "sha256": "000048cd04a777ca7e72c537a0bfaaf79e844cbee8607dbe5f253d6c0191df24"
            },
            "downloads": -1,
            "filename": "pywincalc-3.3.1-cp311-cp311-macosx_12_0_universal2.whl",
            "has_sig": false,
            "md5_digest": "6d04daf9088a9ed1ec30b8e20dd0ceb8",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": null,
            "size": 1265372,
            "upload_time": "2023-08-29T21:11:12",
            "upload_time_iso_8601": "2023-08-29T21:11:12.307519Z",
            "url": "https://files.pythonhosted.org/packages/d1/49/eda2ede9b3c6ca98bfa89cd1a0e1a3fff1fb22fc3d8474e398d22964328e/pywincalc-3.3.1-cp311-cp311-macosx_12_0_universal2.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cce30ea105acd9a5fe2d363fa758f9c13919638a3369fd1a5b66a8f1b6483bbd",
                "md5": "5d4f1c7103f6cd1e37f1c143bed13226",
                "sha256": "6dd27dd39fc06e9c7205f7c48591dbef808d591eb7c804dcfab0aca359c900c0"
            },
            "downloads": -1,
            "filename": "pywincalc-3.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "5d4f1c7103f6cd1e37f1c143bed13226",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": null,
            "size": 1680109,
            "upload_time": "2023-08-29T21:11:14",
            "upload_time_iso_8601": "2023-08-29T21:11:14.645641Z",
            "url": "https://files.pythonhosted.org/packages/cc/e3/0ea105acd9a5fe2d363fa758f9c13919638a3369fd1a5b66a8f1b6483bbd/pywincalc-3.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "381129b26bd0d85e110f009c1eeff67d6cf1693951b357e4a0889aab56aedfe6",
                "md5": "6c5ff800e09a0fc620ccc0ca9c339c51",
                "sha256": "ce278507668830e4fa31a837ce4a840ba911abba37c6096cfbb3ec9a55269d8a"
            },
            "downloads": -1,
            "filename": "pywincalc-3.3.1-cp311-cp311-win32.whl",
            "has_sig": false,
            "md5_digest": "6c5ff800e09a0fc620ccc0ca9c339c51",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": null,
            "size": 1004965,
            "upload_time": "2023-08-29T21:11:17",
            "upload_time_iso_8601": "2023-08-29T21:11:17.043275Z",
            "url": "https://files.pythonhosted.org/packages/38/11/29b26bd0d85e110f009c1eeff67d6cf1693951b357e4a0889aab56aedfe6/pywincalc-3.3.1-cp311-cp311-win32.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ba5a1b47e93e4d9fb26713ba4d4fd98fbf9d8b01e186884f21ac5040731d666c",
                "md5": "2c9047eab9ed0b51f1042b0260b94373",
                "sha256": "a755d4166d283b976f1feb619ba722f2e2658cee2c1f34460acffcb224cc7f59"
            },
            "downloads": -1,
            "filename": "pywincalc-3.3.1-cp311-cp311-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "2c9047eab9ed0b51f1042b0260b94373",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": null,
            "size": 1117523,
            "upload_time": "2023-08-29T21:11:19",
            "upload_time_iso_8601": "2023-08-29T21:11:19.706046Z",
            "url": "https://files.pythonhosted.org/packages/ba/5a/1b47e93e4d9fb26713ba4d4fd98fbf9d8b01e186884f21ac5040731d666c/pywincalc-3.3.1-cp311-cp311-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f1899fccea9e58ab28a75e3ae8eec8862e3ea90d825103b79d2efc7309c91eac",
                "md5": "79759ca4d0feeb6036d4a4f4279b2340",
                "sha256": "549140251dfee257eee0fc53e7b765ea53a48cad13b21cfd30034a524b13dfe8"
            },
            "downloads": -1,
            "filename": "pywincalc-3.3.1-cp37-cp37m-macosx_12_0_x86_64.whl",
            "has_sig": false,
            "md5_digest": "79759ca4d0feeb6036d4a4f4279b2340",
            "packagetype": "bdist_wheel",
            "python_version": "cp37",
            "requires_python": null,
            "size": 1254973,
            "upload_time": "2023-08-29T21:11:21",
            "upload_time_iso_8601": "2023-08-29T21:11:21.448071Z",
            "url": "https://files.pythonhosted.org/packages/f1/89/9fccea9e58ab28a75e3ae8eec8862e3ea90d825103b79d2efc7309c91eac/pywincalc-3.3.1-cp37-cp37m-macosx_12_0_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "533e888a4dcf975725fcc034605a8c4b22eb68c6c508605c636e4384cad53f8e",
                "md5": "bcfefc2ea73a9f6e9af68171d015c9f1",
                "sha256": "a410fb77f9a2663795b018d119bb681782c8bf685173356c4a12d3157cd259f8"
            },
            "downloads": -1,
            "filename": "pywincalc-3.3.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "bcfefc2ea73a9f6e9af68171d015c9f1",
            "packagetype": "bdist_wheel",
            "python_version": "cp37",
            "requires_python": null,
            "size": 1697946,
            "upload_time": "2023-08-29T21:11:23",
            "upload_time_iso_8601": "2023-08-29T21:11:23.613073Z",
            "url": "https://files.pythonhosted.org/packages/53/3e/888a4dcf975725fcc034605a8c4b22eb68c6c508605c636e4384cad53f8e/pywincalc-3.3.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0f9af04541109d5801925eecf45949eb2eb0a82123fc59afd0af1d327b1109ee",
                "md5": "5d26f156f6bb22c3119def25e038a293",
                "sha256": "7af310920a19a568e66adbfeb6d009f0016157f785878e2ce332f8516070814d"
            },
            "downloads": -1,
            "filename": "pywincalc-3.3.1-cp37-cp37m-win32.whl",
            "has_sig": false,
            "md5_digest": "5d26f156f6bb22c3119def25e038a293",
            "packagetype": "bdist_wheel",
            "python_version": "cp37",
            "requires_python": null,
            "size": 1005758,
            "upload_time": "2023-08-29T21:11:25",
            "upload_time_iso_8601": "2023-08-29T21:11:25.142343Z",
            "url": "https://files.pythonhosted.org/packages/0f/9a/f04541109d5801925eecf45949eb2eb0a82123fc59afd0af1d327b1109ee/pywincalc-3.3.1-cp37-cp37m-win32.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "53aded9fa537c1f87b587c10207bcbea7a8e00f4c096f59b4f28eb5994aad567",
                "md5": "60c1b7c7db55ca0beee004c304dba9f3",
                "sha256": "f95946df92edba3019da92c1a1f4055ab1cbc15cd9cff770424c2c60a64a0398"
            },
            "downloads": -1,
            "filename": "pywincalc-3.3.1-cp37-cp37m-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "60c1b7c7db55ca0beee004c304dba9f3",
            "packagetype": "bdist_wheel",
            "python_version": "cp37",
            "requires_python": null,
            "size": 1114329,
            "upload_time": "2023-08-29T21:11:26",
            "upload_time_iso_8601": "2023-08-29T21:11:26.932575Z",
            "url": "https://files.pythonhosted.org/packages/53/ad/ed9fa537c1f87b587c10207bcbea7a8e00f4c096f59b4f28eb5994aad567/pywincalc-3.3.1-cp37-cp37m-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fbd93f063eb88a6501108285d17bd6b282215a25f4c31947f0c02f5a70bb03fd",
                "md5": "881a59f79b99dd3dd4861ddb85b6ddf5",
                "sha256": "3325b2af371743bf489849dc7e935900ca4e3caaf33d3de2b9df4f9969fcbc46"
            },
            "downloads": -1,
            "filename": "pywincalc-3.3.1-cp38-cp38-macosx_10_9_x86_64.whl",
            "has_sig": false,
            "md5_digest": "881a59f79b99dd3dd4861ddb85b6ddf5",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": null,
            "size": 1265251,
            "upload_time": "2023-08-29T21:11:28",
            "upload_time_iso_8601": "2023-08-29T21:11:28.825710Z",
            "url": "https://files.pythonhosted.org/packages/fb/d9/3f063eb88a6501108285d17bd6b282215a25f4c31947f0c02f5a70bb03fd/pywincalc-3.3.1-cp38-cp38-macosx_10_9_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "67d5934c1e776a31c741182a350cd6b49817b40f34316e98d05346f5ddff3260",
                "md5": "c587972c0d0e7d128b89290464e7f10c",
                "sha256": "c04c06a13e446a2a55fa9510eddd844f841511257fa77e9cb0ee942290808a79"
            },
            "downloads": -1,
            "filename": "pywincalc-3.3.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "c587972c0d0e7d128b89290464e7f10c",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": null,
            "size": 1678988,
            "upload_time": "2023-08-29T21:11:31",
            "upload_time_iso_8601": "2023-08-29T21:11:31.013194Z",
            "url": "https://files.pythonhosted.org/packages/67/d5/934c1e776a31c741182a350cd6b49817b40f34316e98d05346f5ddff3260/pywincalc-3.3.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "741cc880a573c5824b650e4b30567d2117280f0f661594a62079e02298037822",
                "md5": "c0f472adf5d37a3cb2ab32e340a4a94c",
                "sha256": "8dd9f0f0e7f4f7726d13edccc2b82f342dc498c2177e221735f1ee384627af5d"
            },
            "downloads": -1,
            "filename": "pywincalc-3.3.1-cp38-cp38-win32.whl",
            "has_sig": false,
            "md5_digest": "c0f472adf5d37a3cb2ab32e340a4a94c",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": null,
            "size": 1005257,
            "upload_time": "2023-08-29T21:11:33",
            "upload_time_iso_8601": "2023-08-29T21:11:33.648973Z",
            "url": "https://files.pythonhosted.org/packages/74/1c/c880a573c5824b650e4b30567d2117280f0f661594a62079e02298037822/pywincalc-3.3.1-cp38-cp38-win32.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8aeeb748734bbb5997cfe404b4e51b8b0f859115f78a4b16e687cfbf74cefaea",
                "md5": "c592b0afee500c90cb3da0ba80630ecb",
                "sha256": "86c57bb1a9251dc41a09716b1c5804ed8edf2965a2ab3746b44b7ded5c805906"
            },
            "downloads": -1,
            "filename": "pywincalc-3.3.1-cp38-cp38-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "c592b0afee500c90cb3da0ba80630ecb",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": null,
            "size": 1116999,
            "upload_time": "2023-08-29T21:11:36",
            "upload_time_iso_8601": "2023-08-29T21:11:36.045688Z",
            "url": "https://files.pythonhosted.org/packages/8a/ee/b748734bbb5997cfe404b4e51b8b0f859115f78a4b16e687cfbf74cefaea/pywincalc-3.3.1-cp38-cp38-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cb5d35f3f6a999fa32af33eb49796313aa048cce01d2dff6f32bea9921a5e615",
                "md5": "7049dd326604fe6891a6d28802839770",
                "sha256": "5d2686807e3b7cdc44a1ce9049d3dcaf06ea1c92bbf6b4faf7561acf89ef25e6"
            },
            "downloads": -1,
            "filename": "pywincalc-3.3.1-cp39-cp39-macosx_12_0_x86_64.whl",
            "has_sig": false,
            "md5_digest": "7049dd326604fe6891a6d28802839770",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": null,
            "size": 1265770,
            "upload_time": "2023-08-29T21:11:38",
            "upload_time_iso_8601": "2023-08-29T21:11:38.565075Z",
            "url": "https://files.pythonhosted.org/packages/cb/5d/35f3f6a999fa32af33eb49796313aa048cce01d2dff6f32bea9921a5e615/pywincalc-3.3.1-cp39-cp39-macosx_12_0_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c4083554d2000836410d95093726a6af5bba792a814afd69d3a283f49ca72677",
                "md5": "e5e63f6a57016d411a9d1dd3b37e9341",
                "sha256": "3df6f7a5f6a860bb54f7d69ad1e6fe8d9e142bfaeff7363c850362f3aae42c13"
            },
            "downloads": -1,
            "filename": "pywincalc-3.3.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "e5e63f6a57016d411a9d1dd3b37e9341",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": null,
            "size": 1680280,
            "upload_time": "2023-08-29T21:11:40",
            "upload_time_iso_8601": "2023-08-29T21:11:40.649703Z",
            "url": "https://files.pythonhosted.org/packages/c4/08/3554d2000836410d95093726a6af5bba792a814afd69d3a283f49ca72677/pywincalc-3.3.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "785313899c44037b41375432aa2aa82e37d38db67d0c51e0001e84494751adf8",
                "md5": "1c7ab28203b00a16755ef9c29db8d959",
                "sha256": "11a3c00ce90b222bd5a3fcfce46ad4175646de650c095c94d84018db137c5d37"
            },
            "downloads": -1,
            "filename": "pywincalc-3.3.1-cp39-cp39-win32.whl",
            "has_sig": false,
            "md5_digest": "1c7ab28203b00a16755ef9c29db8d959",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": null,
            "size": 1005488,
            "upload_time": "2023-08-29T21:11:42",
            "upload_time_iso_8601": "2023-08-29T21:11:42.941470Z",
            "url": "https://files.pythonhosted.org/packages/78/53/13899c44037b41375432aa2aa82e37d38db67d0c51e0001e84494751adf8/pywincalc-3.3.1-cp39-cp39-win32.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "860b10c8816abf239262386a3f3637151f36b5d67fab368bce0ebb9f0ecb8cf5",
                "md5": "aa238e451654831489c02a0fc06d4d26",
                "sha256": "052b3f89f053a1339344f2ed2736c59c283f4c85401c80ecec74a52c77a13355"
            },
            "downloads": -1,
            "filename": "pywincalc-3.3.1-cp39-cp39-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "aa238e451654831489c02a0fc06d4d26",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": null,
            "size": 1095131,
            "upload_time": "2023-08-29T21:11:44",
            "upload_time_iso_8601": "2023-08-29T21:11:44.734493Z",
            "url": "https://files.pythonhosted.org/packages/86/0b/10c8816abf239262386a3f3637151f36b5d67fab368bce0ebb9f0ecb8cf5/pywincalc-3.3.1-cp39-cp39-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-08-29 21:11:03",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "LBNL-ETA",
    "github_project": "pywincalc",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "pywincalc"
}
        
Elapsed time: 0.22638s