Skip to content

Commit 9bce51b

Browse files
Revert "Kempe standoff"
1 parent b7a4cb3 commit 9bce51b

26 files changed

+8937
-18801
lines changed

.github/workflows/publish-to-test-pypi.yml

-117
This file was deleted.

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# See https://pre-commit.com/hooks.html for more hooks
33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v4.5.0
5+
rev: v3.2.0
66
hooks:
77
- id: trailing-whitespace
88
- id: end-of-file-fixer

pvdeg/data/psm3.csv

+8,763-8,763
Large diffs are not rendered by default.

pvdeg/data/xeff_demo.csv

-8,763
This file was deleted.

pvdeg/data/xeff_demo.xlsx

-1.92 MB
Binary file not shown.

pvdeg/fatigue.py

+1-11
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ def solder_fatigue(
107107
b=0.33,
108108
C1=405.6,
109109
Q=0.12,
110-
wind_factor=None,
111110
):
112111
"""
113112
Get the Thermomechanical Fatigue of flat plate photovoltaic module solder joints.
@@ -128,13 +127,6 @@ def solder_fatigue(
128127
Must contain dni, dhi, ghi, temp_air, windspeed, and datetime index
129128
meta : dict
130129
site location meta-data
131-
wind_factor : float, optional
132-
Wind speed correction exponent to account for different wind speed measurement heights
133-
between weather database (e.g. NSRDB) and the tempeature model (e.g. SAPM)
134-
The NSRDB provides calculations at 2 m (i.e module height) but SAPM uses a 10 m height.
135-
It is recommended that a power-law relationship between height and wind speed of 0.33
136-
be used. This results in a wind speed that is 1.7 times higher. It is acknowledged that
137-
this can vary significantly.
138130
time_range : timestamp series, optional
139131
Local time of specific site by the hour year-month-day hr:min:sec
140132
(Example) 2002-01-01 01:00:00
@@ -177,9 +169,7 @@ def solder_fatigue(
177169
time_range = weather_df.index
178170

179171
if temp_cell is None:
180-
temp_cell = temperature.cell(
181-
weather_df=weather_df, meta=meta, wind_factor=wind_factor
182-
)
172+
temp_cell = temperature.cell(weather_df, meta)
183173

184174
temp_amplitude, temp_max_avg = _avg_daily_temp_change(time_range, temp_cell)
185175

pvdeg/humidity.py

+9-13
Original file line numberDiff line numberDiff line change
@@ -657,13 +657,13 @@ def module(
657657
azimuth=180,
658658
sky_model="isotropic",
659659
temp_model="sapm",
660-
conf="open_rack_glass_glass",
660+
mount_type="open_rack_glass_glass",
661661
WVTRo=7970633554,
662662
EaWVTR=55.0255,
663663
So=1.81390702,
664664
l=0.5,
665665
Eas=16.729,
666-
wind_factor=0.33,
666+
wind_speed_factor=1,
667667
):
668668
"""Calculate the Relative Humidity of solar module backsheet from timeseries data.
669669
@@ -702,13 +702,9 @@ def module(
702702
Eas : float
703703
Encapsulant solubility activation energy in [kJ/mol]
704704
Eas = 16.729(kJ/mol) is the suggested value for EVA.
705-
wind_factor : float, optional
706-
Wind speed correction exponent to account for different wind speed measurement heights
705+
wind_speed_factor : float, optional
706+
Wind speed correction factor to account for different wind speed measurement heights
707707
between weather database (e.g. NSRDB) and the tempeature model (e.g. SAPM)
708-
The NSRDB provides calculations at 2 m (i.e module height) but SAPM uses a 10 m height.
709-
It is recommended that a power-law relationship between height and wind speed of 0.33
710-
be used. This results in a wind speed that is 1.7 times higher. It is acknowledged that
711-
this can vary significantly.
712708
713709
Returns
714710
--------
@@ -718,7 +714,7 @@ def module(
718714

719715
# solar_position = spectral.solar_position(weather_df, meta)
720716
# poa = spectral.poa_irradiance(weather_df, meta, solar_position, tilt, azimuth, sky_model)
721-
# temp_module = temperature.module(weather_df, poa, temp_model, mount_type, wind_factor)
717+
# temp_module = temperature.module(weather_df, poa, temp_model, mount_type, wind_speed_factor)
722718

723719
poa = spectral.poa_irradiance(
724720
weather_df=weather_df,
@@ -733,8 +729,8 @@ def module(
733729
meta,
734730
poa=poa,
735731
temp_model=temp_model,
736-
conf=conf,
737-
wind_factor=wind_factor,
732+
conf=mount_type,
733+
wind_speed_factor=wind_speed_factor,
738734
)
739735

740736
rh_surface_outside = surface_outside(
@@ -794,7 +790,7 @@ def module(
794790
# So=1.81390702,
795791
# l=0.5,
796792
# Eas=16.729,
797-
# wind_factor=1
793+
# wind_speed_factor=1
798794
# ):
799795

800796
# """Run the relative humidity calculation for a set of project points."""
@@ -865,7 +861,7 @@ def module(
865861
# So,
866862
# l,
867863
# Eas,
868-
# wind_factor
864+
# wind_speed_factor
869865
# )
870866
# future_to_point[future] = gid
871867

pvdeg/spectral.py

+2-7
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def solar_position(weather_df, meta):
4242

4343

4444
def poa_irradiance(
45-
weather_df, meta, sol_position=None, tilt=None, azimuth=None, sky_model="isotropic"
45+
weather_df, meta, sol_position=None, tilt=None, azimuth=180, sky_model="isotropic"
4646
):
4747
"""
4848
Calculate plane-of-array (POA) irradiance using pvlib based on weather data from the
@@ -60,7 +60,7 @@ def poa_irradiance(
6060
The tilt angle of the PV panels in degrees, if None, the latitude of the
6161
location is used.
6262
azimuth : float, optional
63-
The azimuth angle of the PV panels in degrees. Equatorial facing by default.
63+
The azimuth angle of the PV panels in degrees, 180 by default - facing south.
6464
sky_model : str, optional
6565
The pvlib sky model to use, 'isotropic' by default.
6666
@@ -74,11 +74,6 @@ def poa_irradiance(
7474
# TODO: change for handling HSAT tracking passed or requested
7575
if tilt is None:
7676
tilt = float(meta["latitude"])
77-
if azimuth is None: # Sets the default orientation to equator facing.
78-
if float(meta["latitude"]) < 0:
79-
azimuth = 0
80-
else:
81-
azimuth = 180
8277

8378
if sol_position is None:
8479
sol_position = solar_position(weather_df, meta)

0 commit comments

Comments
 (0)