-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from LBNL-ETA/2024SeptemberFixes
2024 september fixes
- Loading branch information
Showing
45 changed files
with
727 additions
and
215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,26 +12,28 @@ jobs: | |
matrix: | ||
os: [windows-2019] | ||
arch: [x86, x64] | ||
python-version: [3.7, 3.8, 3.9, "3.10", "3.11"] | ||
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"] | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
architecture: ${{ matrix.arch }} | ||
|
||
- name: Install packages | ||
run: pip install wheel | ||
run: | | ||
pip install wheel | ||
pip install setuptools | ||
- name: build | ||
run: python setup.py bdist_wheel | ||
|
||
- name: upload wheels | ||
uses: actions/upload-artifact@v2 | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
path: ./dist/*.whl | ||
|
||
|
@@ -44,27 +46,29 @@ jobs: | |
# There is documentation here https://github.com/pypa/cibuildwheel/blob/main/docs/cpp_standards.md on how to | ||
# set it but I could not get it to work while using the standard images provided by github actions does work. | ||
os: [macos-latest] | ||
python-version: [3.7, 3.8, 3.9, "3.10", "3.11"] | ||
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"] | ||
env: | ||
SYSTEM_VERSION_COMPAT: 0 | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install packages | ||
run: pip install wheel | ||
run: | | ||
pip install wheel | ||
pip install setuptools | ||
- name: build | ||
run: python setup.py bdist_wheel | ||
|
||
- name: upload wheels | ||
uses: actions/upload-artifact@v2 | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
path: ./dist/*.whl | ||
|
||
|
@@ -80,9 +84,12 @@ jobs: | |
# Note that at least manylinux2014 is needed to get support for C++17 | ||
- name: Build manylinux Python wheels | ||
uses: RalfG/[email protected]_x86_64 | ||
with: | ||
python-versions: 'cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310 cp311-cp311 cp312-cp312' | ||
build-requirements: 'setuptools' | ||
|
||
- name: upload wheels | ||
uses: actions/upload-artifact@v2 | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
path: ./dist/*-manylinux*.whl | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import pywincalc | ||
|
||
pillar = pywincalc.AnnulusCylinderPillar(height=0.002, material_conductivity=20, | ||
cell_area=pywincalc.pillar_cell_area(pywincalc.CellSpacingType.SQUARE, 0.03), | ||
inner_radius=0.01e-3, outer_radius=0.25e-3) | ||
gap = pywincalc.Layers.create_pillar(pillar=pillar, pressure=0.1333) | ||
|
||
gaps = [gap] | ||
|
||
clear_3_path = "products/CLEAR_3.DAT" | ||
clear_3 = pywincalc.parse_optics_file(clear_3_path) | ||
solid_layers = [clear_3, clear_3] | ||
|
||
# Create a glazing system. This only shows an example of getting one result from a glazing system | ||
# created using default environmental conditions. | ||
# | ||
# For more possible results see optical_results_NFRC.py | ||
# | ||
# For more on environmental conditions see environmental_conditions_user_defined.py | ||
glazing_system = pywincalc.GlazingSystem(solid_layers=solid_layers, gap_layers=gaps) | ||
u_value = glazing_system.u() | ||
print(f"U-value for the system: {u_value}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import pywincalc | ||
|
||
pillar = pywincalc.CylindricalPillar(height=0.002, material_conductivity=20, | ||
cell_area=pywincalc.pillar_cell_area(pywincalc.CellSpacingType.SQUARE, 0.03), | ||
radius=0.25e-3) | ||
gap = pywincalc.Layers.create_pillar(pillar=pillar, pressure=0.1333) | ||
|
||
gaps = [gap] | ||
|
||
clear_3_path = "products/CLEAR_3.DAT" | ||
clear_3 = pywincalc.parse_optics_file(clear_3_path) | ||
solid_layers = [clear_3, clear_3] | ||
|
||
# Create a glazing system. This only shows an example of getting one result from a glazing system | ||
# created using default environmental conditions. | ||
# | ||
# For more possible results see optical_results_NFRC.py | ||
# | ||
# For more on environmental conditions see environmental_conditions_user_defined.py | ||
glazing_system = pywincalc.GlazingSystem(solid_layers=solid_layers, gap_layers=gaps) | ||
u_value = glazing_system.u() | ||
print(f"U-value for the system: {u_value}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import pywincalc | ||
|
||
pillar = pywincalc.LinearBearingPillar(height=0.002, material_conductivity=20, | ||
cell_area=pywincalc.pillar_cell_area(pywincalc.CellSpacingType.SQUARE, 0.03), | ||
length=0.25e-3, width=0.01e-3) | ||
gap = pywincalc.Layers.create_pillar(pillar=pillar, pressure=0.1333) | ||
|
||
gaps = [gap] | ||
|
||
clear_3_path = "products/CLEAR_3.DAT" | ||
clear_3 = pywincalc.parse_optics_file(clear_3_path) | ||
solid_layers = [clear_3, clear_3] | ||
|
||
# Create a glazing system. This only shows an example of getting one result from a glazing system | ||
# created using default environmental conditions. | ||
# | ||
# For more possible results see optical_results_NFRC.py | ||
# | ||
# For more on environmental conditions see environmental_conditions_user_defined.py | ||
glazing_system = pywincalc.GlazingSystem(solid_layers=solid_layers, gap_layers=gaps) | ||
u_value = glazing_system.u() | ||
print(f"U-value for the system: {u_value}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import pywincalc | ||
|
||
glass_1 = pywincalc.Glass(thickness=0.05, conductivity=1, emissivity=0.8) | ||
glass_2 = pywincalc.Glass(thickness=0.05, conductivity=1, emissivity=0.8) | ||
measured_pillar = pywincalc.PillarMeasurement(total_thickness=0.12, conductivity=0.3, temperature_surface_1=295, | ||
temperature_surface_4=305, glass_1=glass_1, glass_2=glass_2) | ||
|
||
gap = pywincalc.Layers.create_pillar(pillar=measured_pillar) | ||
|
||
gaps = [gap] | ||
|
||
clear_3_path = "products/CLEAR_3.DAT" | ||
clear_3 = pywincalc.parse_optics_file(clear_3_path) | ||
solid_layers = [clear_3, clear_3] | ||
|
||
# Create a glazing system. This only shows an example of getting one result from a glazing system | ||
# created using default environmental conditions. | ||
# | ||
# For more possible results see optical_results_NFRC.py | ||
# | ||
# For more on environmental conditions see environmental_conditions_user_defined.py | ||
glazing_system = pywincalc.GlazingSystem(solid_layers=solid_layers, gap_layers=gaps) | ||
u_value = glazing_system.u() | ||
print(f"U-value for the system: {u_value}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import pywincalc | ||
|
||
pillar = pywincalc.PolygonalPillar(height=0.002, material_conductivity=20, | ||
cell_area=pywincalc.pillar_cell_area(pywincalc.CellSpacingType.SQUARE, 0.03), | ||
length=0.25e-3, polygon_type=pywincalc.PolygonType.PENTAGON) | ||
gap = pywincalc.Layers.create_pillar(pillar=pillar, pressure=0.1333) | ||
|
||
gaps = [gap] | ||
|
||
clear_3_path = "products/CLEAR_3.DAT" | ||
clear_3 = pywincalc.parse_optics_file(clear_3_path) | ||
solid_layers = [clear_3, clear_3] | ||
|
||
# Create a glazing system. This only shows an example of getting one result from a glazing system | ||
# created using default environmental conditions. | ||
# | ||
# For more possible results see optical_results_NFRC.py | ||
# | ||
# For more on environmental conditions see environmental_conditions_user_defined.py | ||
glazing_system = pywincalc.GlazingSystem(solid_layers=solid_layers, gap_layers=gaps) | ||
u_value = glazing_system.u() | ||
print(f"U-value for the system: {u_value}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import pywincalc | ||
|
||
pillar = pywincalc.RectangularPillar(height=0.002, material_conductivity=20, | ||
cell_area=pywincalc.pillar_cell_area(pywincalc.CellSpacingType.SQUARE, 0.03), | ||
length=0.25e-3, width=0.05e-3) | ||
gap = pywincalc.Layers.create_pillar(pillar=pillar, pressure=0.1333) | ||
|
||
gaps = [gap] | ||
|
||
clear_3_path = "products/CLEAR_3.DAT" | ||
clear_3 = pywincalc.parse_optics_file(clear_3_path) | ||
solid_layers = [clear_3, clear_3] | ||
|
||
# Create a glazing system. This only shows an example of getting one result from a glazing system | ||
# created using default environmental conditions. | ||
# | ||
# For more possible results see optical_results_NFRC.py | ||
# | ||
# For more on environmental conditions see environmental_conditions_user_defined.py | ||
glazing_system = pywincalc.GlazingSystem(solid_layers=solid_layers, gap_layers=gaps) | ||
u_value = glazing_system.u() | ||
print(f"U-value for the system: {u_value}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import pywincalc | ||
|
||
pillar = pywincalc.SphericalPillar(height=0.002, material_conductivity=20, | ||
cell_area=pywincalc.pillar_cell_area(pywincalc.CellSpacingType.SQUARE, 0.03), | ||
radius_of_contact=0.25e-3) | ||
gap = pywincalc.Layers.create_pillar(pillar=pillar, pressure=0.1333) | ||
|
||
gaps = [gap] | ||
|
||
clear_3_path = "products/CLEAR_3.DAT" | ||
clear_3 = pywincalc.parse_optics_file(clear_3_path) | ||
solid_layers = [clear_3, clear_3] | ||
|
||
# Create a glazing system. This only shows an example of getting one result from a glazing system | ||
# created using default environmental conditions. | ||
# | ||
# For more possible results see optical_results_NFRC.py | ||
# | ||
# For more on environmental conditions see environmental_conditions_user_defined.py | ||
glazing_system = pywincalc.GlazingSystem(solid_layers=solid_layers, gap_layers=gaps) | ||
u_value = glazing_system.u() | ||
print(f"U-value for the system: {u_value}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import pywincalc | ||
|
||
pillar = pywincalc.PolygonalPillar(height=0.002, material_conductivity=20, | ||
cell_area=pywincalc.pillar_cell_area(pywincalc.CellSpacingType.SQUARE, 0.03), | ||
length=0.25e-3, polygon_type=pywincalc.PolygonType.TRIANGLE) | ||
gap = pywincalc.Layers.create_pillar(pillar=pillar, pressure=0.1333) | ||
|
||
gaps = [gap] | ||
|
||
clear_3_path = "products/CLEAR_3.DAT" | ||
clear_3 = pywincalc.parse_optics_file(clear_3_path) | ||
solid_layers = [clear_3, clear_3] | ||
|
||
# Create a glazing system. This only shows an example of getting one result from a glazing system | ||
# created using default environmental conditions. | ||
# | ||
# For more possible results see optical_results_NFRC.py | ||
# | ||
# For more on environmental conditions see environmental_conditions_user_defined.py | ||
glazing_system = pywincalc.GlazingSystem(solid_layers=solid_layers, gap_layers=gaps) | ||
u_value = glazing_system.u() | ||
print(f"U-value for the system: {u_value}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import pywincalc | ||
|
||
pillar = pywincalc.TruncatedConePillar(height=0.002, material_conductivity=20, | ||
cell_area=pywincalc.pillar_cell_area(pywincalc.CellSpacingType.SQUARE, 0.03), | ||
radius_1=0.25e-3, radius_2=0.01e-3) | ||
gap = pywincalc.Layers.create_pillar(pillar=pillar, pressure=0.1333) | ||
|
||
gaps = [gap] | ||
|
||
clear_3_path = "products/CLEAR_3.DAT" | ||
clear_3 = pywincalc.parse_optics_file(clear_3_path) | ||
solid_layers = [clear_3, clear_3] | ||
|
||
# Create a glazing system. This only shows an example of getting one result from a glazing system | ||
# created using default environmental conditions. | ||
# | ||
# For more possible results see optical_results_NFRC.py | ||
# | ||
# For more on environmental conditions see environmental_conditions_user_defined.py | ||
glazing_system = pywincalc.GlazingSystem(solid_layers=solid_layers, gap_layers=gaps) | ||
u_value = glazing_system.u() | ||
print(f"U-value for the system: {u_value}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.