Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test cron script #4

Merged
merged 112 commits into from
Oct 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
112 commits
Select commit Hold shift + click to select a range
407687f
ASV: bump numpy and pandas versions to match new requirements (#1987)
kandersolar Mar 12, 2024
ee9b24a
Update SRML test url and re-enable tests (#1988)
AdamRJensen Mar 12, 2024
92c0e5b
Simplify and future-proof numba import in spa.py (#1944)
kandersolar Mar 13, 2024
c90cb4e
Add gallery example for OEDI system 9068 (#1985)
kandersolar Mar 18, 2024
f787047
Address pandas deprecation warnings (#1995)
kandersolar Mar 19, 2024
2f04c26
Finalize 0.10.4 (#1994)
kandersolar Mar 19, 2024
ccf74ea
Typo in plot_oedi_9068.py (#1996)
echedey-ls Apr 3, 2024
71da245
Update formatting of additional pvlib publications (#2011)
AdamRJensen Apr 13, 2024
c2ac022
Fix Windows/Conda CI error in test_singlediode.py (#2007)
echedey-ls Apr 15, 2024
3b3a38a
move Matlab references to history (#2012)
cwhanse Apr 16, 2024
ba458bd
Remove link to outdated tutorials (#2009)
AdamRJensen Apr 16, 2024
1d854e5
Minor improvements to "PV System Models" reference page (#2014)
kandersolar Apr 16, 2024
a49d143
Update codecov CI configuration to fix PR coverage uploads (#2022)
kandersolar Apr 29, 2024
25ec296
Codecov upload follow-up (#2024)
kandersolar Apr 29, 2024
8668a61
Numpy 2.0 compatibility (#2027)
kandersolar May 1, 2024
ad2e6ac
Fix silently ignoring file path in `pvsystem.retrieve_sam` when `name…
echedey-ls May 1, 2024
345b26f
More docs build fixes (#2030)
echedey-ls May 1, 2024
ec6fd33
Fix Ixx equation in pvsystem.sapm (#2019)
cwhanse May 2, 2024
0387b25
Get the asv benchmarking job working again (#2028)
kandersolar May 2, 2024
3230fea
Modify initial Voc for bishop88 functions (#2032)
cwhanse May 2, 2024
a673b85
Increase python requirement to >= 3.8 (#2029)
kandersolar May 3, 2024
3bfd0d5
Finalize 0.10.5 (#2035)
kandersolar May 6, 2024
60110b4
Add configuration options for math mode (#2056)
cwhanse May 22, 2024
80761af
Minor documentation rendering improvements (#2058)
kandersolar May 22, 2024
eeec98c
Issue #1697 Remove the function and all its reference poa_horizontal_…
k10blogger May 24, 2024
d53f97e
Shaded Fraction on Sloped Terrains - PR1725 partial continuation (#1962)
echedey-ls May 24, 2024
07d5c9f
Remove deprecated basic_chain method (#1862)
AdamRJensen May 26, 2024
ddb1c8e
Make leap_day=True default for PSM3 (new) (#1991)
AdamRJensen Jun 2, 2024
77c2051
Remove deprecated pvlib.iotools.read_srml_month_from_solardat functio…
AdamRJensen Jun 6, 2024
17aed3a
Update MIDC variable mapping (#2006)
AdamRJensen Jun 7, 2024
555b29a
Quantum efficiency & spectral response conversion funcs (#2041)
echedey-ls Jun 10, 2024
b147600
Change accuracy of `pvsyst_cell` test function (#2080)
IoannisSifnaios Jun 10, 2024
1f36160
Fix port of old-precision-decimal to present-atol in tests (#2082)
echedey-ls Jun 10, 2024
1ea8ee5
Add albedo function for inland water bodies (#2079)
IoannisSifnaios Jun 12, 2024
734ac82
No more default nones (#2084)
echedey-ls Jun 12, 2024
19c9598
Add PVSPEC spectral correction factor model (#2072)
RDaxini Jun 14, 2024
2d0ed71
Add extraterrestrial and direct spectra of ASTM G173-03 standard spec…
echedey-ls Jun 17, 2024
cc027e4
Set `map_variables=True` by default in PSM3 iotools functions (#2094)
kandersolar Jun 19, 2024
1eecaa3
Move albedo dictionary from `pvlib.irradiance` to `pvlib.albedo` (#2095)
IoannisSifnaios Jun 19, 2024
418d6d0
Add a simple transformer effficiency model to pvlib (#2053)
kurt-rhee Jun 19, 2024
229a187
Agrivoltaics - PAR diffuse fraction model (#2048)
echedey-ls Jun 20, 2024
3f2daab
Add JRC spectral factor correction (#2088)
RDaxini Jun 20, 2024
35599e7
Martinez shading factor (#2070)
echedey-ls Jun 21, 2024
d21c1b3
Add hint about Perez discontinuities (#2098)
AdamRJensen Jun 21, 2024
3d778ea
Update colorbar tick names in sunpath gallery example (#2097)
AdamRJensen Jun 21, 2024
c6547b5
Adding altitude lookup for Location class (#1850)
nicomt Jun 21, 2024
4b1ba1d
`pvlib.pvsystem.singlediode`: remove deprecated `ivcurve_pnts` parame…
kandersolar Jun 21, 2024
dd2dafc
Finalize v0.11.0 (#2102)
kandersolar Jun 21, 2024
55e0a36
Create and list whatsnew page for v0.11.1 (#2103)
kandersolar Jun 21, 2024
13ef8f4
Fix cut-off label text in gallery example figure (#2109)
IoannisSifnaios Jun 27, 2024
c7b8b00
Broken GitHub links from gallery examples (#2111)
IoannisSifnaios Jul 1, 2024
8d172c4
NREL non-uniform irradiance mismatch loss for bifacial modules (#2046)
echedey-ls Jul 1, 2024
99619e8
Update spectral_factor_sapm docs (#2116)
RDaxini Jul 3, 2024
2e8f576
edit copyright statement in RTD (#2119)
cwhanse Jul 8, 2024
6f5afa9
Floating PV gallery example (#2110)
IoannisSifnaios Jul 8, 2024
b6c795d
Add spectral factor gallery example (#2114)
RDaxini Jul 9, 2024
4354eb9
Update `spectral_factor_sapm` docstring returns statement (#2122)
RDaxini Jul 9, 2024
048b70f
improve Location docstrings (#2123)
kandersolar Jul 10, 2024
8e2bc91
Bump docs infraestructure (#2112)
echedey-ls Jul 14, 2024
0d09130
removed duplicate import of datetime (#2134)
PhilBrk8 Jul 17, 2024
2e9c2c0
update spectral_factor_firstsolar (#2100)
RDaxini Jul 17, 2024
899b10c
Remove warnings in docs (#2128)
echedey-ls Jul 22, 2024
83d90eb
changed w to omega in tracking.py's singleaxis function (#2146)
kurt-rhee Jul 26, 2024
f6b1d2a
Function to estimate wind speed at different heights (#2124)
IoannisSifnaios Aug 5, 2024
72185cb
restructure pvlib/spectrum (#2136)
RDaxini Aug 5, 2024
b2a82f1
Split test_spectrum.py (#2151)
RDaxini Aug 7, 2024
ee4f218
Removed unused input as shown in issue #2105 (#2156)
JoseMezaMendieta Aug 7, 2024
599c5d9
style(pvlib.data.variables_style_rules.csv): fixed power typo (#2157)
Metal-Bat Aug 7, 2024
5e43be7
NREL mismatch loss addendum (#2147)
echedey-ls Aug 8, 2024
cd9cb9a
Create function to calculate average photon energy (#2140)
RDaxini Aug 14, 2024
0428fbe
Perez coeff ModelChain example (#2148)
bgpierc Aug 15, 2024
b5e89be
coerce and rotate pvgis TMY data to desired tz and year (#2138)
mikofski Aug 16, 2024
e2b1d9b
fix typo on calcparams_desoto help (#2174)
EduardoSarquis Aug 22, 2024
a4c4c21
typo fixing of pvwatts_dc (#2175)
BernatNicolau Aug 26, 2024
cbfa292
Fix Returns text in `solarposition.ephemeris` (#2182)
BernatNicolau Aug 28, 2024
aaf42f6
Plot limits added in docs\examples\iv-modeling\plot_singlediode.py (#…
BernatNicolau Aug 28, 2024
a2abe3e
`get_sky_diffuse` documentation updated (`ValueError` description) (#…
BernatNicolau Aug 28, 2024
e59d2b8
Fixed typo (#2178)
marc-resc Aug 29, 2024
9dfcf45
Miscellaneous improvements to `spectrl2` docstring (#2168)
RDaxini Aug 30, 2024
524fa55
Spelling fix on "/pvlib/clearsky.py" documentation (#2176)
cardenca Sep 3, 2024
a14e95e
Add reference to `tracking.singleaxis` (#2198)
RDaxini Sep 9, 2024
3837f54
fix a typo at the singlediode function (#2179)
luizreiscver Sep 11, 2024
def8c87
Miscellaneous updates to spectrl2 gallery example (#2208)
RDaxini Sep 11, 2024
5aa9ba1
Update variables_style_rules.csv (#2164)
RDaxini Sep 11, 2024
136cf47
Update virtual environment guide URL on contributing page (#2200)
RDaxini Sep 16, 2024
5d23f14
fix linter issues in `conf.py` (#2214)
RDaxini Sep 17, 2024
d6baf97
Implemented closed-form solution in `detect_clearsky` (#2217)
agodbehere Sep 23, 2024
d8ea82b
Fix examples of shaded_fraction1d (#2215)
echedey-ls Sep 23, 2024
e80355e
Remove warning message for `num_threads` in `pvlib.spa` (#2170)
kandersolar Sep 23, 2024
339e6aa
Split `contributing.rst` (#2219)
RDaxini Sep 23, 2024
d45790a
Perform dayofyear-based calculations according to UTC, not local time…
yhkee0404 Sep 24, 2024
ad89390
Update irradiance.haydavies docs; use Wm⁻² instead of W/m^2 throughou…
RDaxini Sep 24, 2024
cc700f9
add `spectrum.average_photon_energy` gallery example (#2206)
RDaxini Sep 24, 2024
52afdcf
Remove Python version 3.8 (#2213)
AdamRJensen Sep 25, 2024
c6ba6ed
Update PVGIS TMY tests and files (#2222)
AdamRJensen Sep 26, 2024
f4fa92e
Update GH action versions (#2223)
AdamRJensen Sep 26, 2024
94c3fc5
Update irradiance.klucher docs (#2192)
RDaxini Sep 26, 2024
5803ce3
Allow `delta_t` to be array in SPA functions (#2190)
kandersolar Sep 26, 2024
68315e4
Finalize v0.11.1 (#2225)
kandersolar Sep 26, 2024
0f324ab
Create and list whatsnew page for v0.11.2 (#2228)
kandersolar Sep 26, 2024
4cfda4a
Revise dc_ohmic_loss and dc_ohms_from_percent docstrings (#2229)
cwhanse Sep 27, 2024
29b1f86
fix typos in #2229 (#2236)
cwhanse Oct 1, 2024
8767004
update irradiance.reindl docs (#2193)
RDaxini Oct 4, 2024
cbe4cc5
Update README.md (#2240)
mikofski Oct 6, 2024
36d6f74
Update the "testing" section header (#2257)
AdamRJensen Oct 11, 2024
d9acdba
Miscellaneous `iam.py` docstring updates (#2251)
RDaxini Oct 15, 2024
b6ac5a1
[MAINT]: Decorator to warn about changed parameter names & allow for …
echedey-ls Oct 15, 2024
1c65dca
`aoi` definition in variables_style_rules.csv (#2247)
RDaxini Oct 18, 2024
254d82f
[MAINT]: Partially move `test_conftest` to `test__deprecation` (#2262)
echedey-ls Oct 19, 2024
5db4fbd
Create update_top_ranking_issues.py
AdamRJensen Oct 19, 2024
972c3ae
Create top_ranked_issue.yml
AdamRJensen Oct 19, 2024
7d15199
Update update_top_ranking_issues.py
AdamRJensen Oct 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions .github/workflows/asv_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,30 @@ jobs:
shell: bash -el {0}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install Python
uses: actions/setup-python@v3
uses: actions/setup-python@v5
with:
python-version: '3.9'

- name: Install asv
run: pip install asv==0.4.2

# asv 0.4.2 (and more recent versions as well) creates conda envs
# using the --force option, which was removed in conda 24.3.
# Since ubuntu-latest now comes with conda 24.3 pre-installed,
# using the system's conda will result in error.
# To prevent that, we install an older version.
# TODO: remove this when we eventually upgrade our asv version.
# https://github.com/airspeed-velocity/asv/issues/1396
- name: Install Conda
uses: conda-incubator/setup-miniconda@v3
with:
conda-version: 24.1.2

- name: Run asv benchmarks
run: |
cd benchmarks
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/flake8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install Python 3.11
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install Flake8 5.0.4 linter
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ jobs:
runs-on: ubuntu-latest
steps:
# fetch all commits and tags so versioneer works
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.9

- name: Install build tools
run: |
Expand Down
16 changes: 9 additions & 7 deletions .github/workflows/pytest-remote-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,28 +56,28 @@ jobs:
strategy:
fail-fast: false # don't cancel other matrix jobs when one fails
matrix:
python-version: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12"]
python-version: [3.9, "3.10", "3.11", "3.12"]
suffix: [''] # the alternative to "-min"
include:
- python-version: 3.7
- python-version: 3.9
suffix: -min

runs-on: ubuntu-latest
if: (github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'remote-data')) || (github.event_name == 'push')

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
if: github.event_name == 'pull_request_target'
# pull_request_target runs in the context of the target branch (pvlib/main),
# but what we need is the hypothetical merge commit from the PR:
with:
ref: "refs/pull/${{ github.event.number }}/merge"

- uses: actions/checkout@v2
- uses: actions/checkout@v4
if: github.event_name == 'push'

- name: Set up conda environment
uses: conda-incubator/setup-miniconda@v2
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: test_env
environment-file: ${{ env.REQUIREMENTS }}
Expand All @@ -103,9 +103,11 @@ jobs:
run: pytest pvlib/tests/iotools --cov=./ --cov-report=xml --remote-data

- name: Upload coverage to Codecov
if: matrix.python-version == 3.7 && matrix.suffix == ''
uses: codecov/codecov-action@v3
if: matrix.python-version == 3.9 && matrix.suffix == ''
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
verbose: true
flags: remote-data # flags are configured in codecov.yml
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
14 changes: 8 additions & 6 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
fail-fast: false # don't cancel other matrix jobs when one fails
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12"]
python-version: [3.9, "3.10", "3.11", "3.12"]
environment-type: [conda, bare]
suffix: [''] # placeholder as an alternative to "-min"
include:
- os: ubuntu-latest
python-version: 3.7
python-version: 3.9
environment-type: conda
suffix: -min
exclude:
Expand All @@ -31,7 +31,7 @@ jobs:
steps:
# We check out only a limited depth and then pull tags to save time
- name: Checkout source
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 100

Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:

- name: Install bare Python ${{ matrix.python-version }}${{ matrix.suffix }}
if: matrix.environment-type == 'bare'
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -82,9 +82,11 @@ jobs:
pytest pvlib --cov=./ --cov-report=xml --ignore=pvlib/tests/iotools

- name: Upload coverage to Codecov
if: matrix.python-version == 3.7 && matrix.suffix == '' && matrix.os == 'ubuntu-latest' && matrix.environment-type == 'conda'
uses: codecov/codecov-action@v3
if: matrix.python-version == 3.9 && matrix.suffix == '' && matrix.os == 'ubuntu-latest' && matrix.environment-type == 'conda'
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
verbose: true
flags: core # flags are configured in codecov.yml
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
32 changes: 32 additions & 0 deletions .github/workflows/top_ranked_issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: top_ranked_issues

on:
pull_request: # for testings purposes, should be removed
schedule:
# Runs every day at 3:00 AM UTC
- cron: '0 3 * * *'

jobs:
run-script:
runs-on: ubuntu-latest

# Define GitHub access token
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}


steps:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install github

# Run a sample script
- name: Run Script
run: |
python ./scripts/update_top_ranking_issues.py
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ docs/sphinx/source/reference/generated
docs/sphinx/source/reference/*/generated
docs/sphinx/source/savefig
docs/sphinx/source/gallery
docs/sphinx/source/sg_execution_times.rst

# Installer logs
pip-log.txt
Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Contributing
============

We need your help to make pvlib-python a great tool!
Please see the [Contributing page](http://pvlib-python.readthedocs.io/en/stable/contributing.html) for more on how you can contribute.
Please see the [Contributing page](https://pvlib-python.readthedocs.io/en/stable/contributing/index.html) for more on how you can contribute.
The long-term success of pvlib-python requires substantial community support.


Expand Down Expand Up @@ -145,9 +145,8 @@ BSD 3-clause.
History and acknowledgement
===========================

pvlib python started out as a Python translation of the PVLIB MATLAB
toolbox (developed by the [PVPMC](https://pvpmc.sandia.gov/) at
Sandia National Laboratories) in 2013 and has grown substantially since then.
pvlib python began in 2013 as a Python translation of the [PVLIB for Matlab](https://github.com/sandialabs/MATLAB_PV_LIB)
toolbox developed by Sandia National Laboratories. pvlib python has grown substantially since then.
Today it contains code contributions from over a hundred individuals worldwide
and is maintained by a core group of PV modelers from a variety of institutions.

Expand Down
14 changes: 7 additions & 7 deletions benchmarks/asv.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,19 +113,19 @@
"include": [
// minimum supported versions
{
"python": "3.7",
"python": "3.9",
"build": "",
"numpy": "1.16.5",
"pandas": "0.25.0",
"scipy": "1.5.0",
"numpy": "1.19.5",
"pandas": "1.3.0",
"scipy": "1.6.0",
// Note: these don't have a minimum in setup.py
"h5py": "3.1.0",
"ephem": "3.7.6.0",
"numba": "0.40.0"
"ephem": "4.0.0.1", // first version to support py 3.9
"numba": "0.53.0", // first version to support py 3.9
},
// latest versions available
{
"python": "3.8",
"python": "3.9",
"build": "",
"numpy": "",
"pandas": "",
Expand Down
2 changes: 1 addition & 1 deletion ci/requirements-py3.10.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dependencies:
- python=3.10
- pytz
- requests
- scipy >= 1.5.0
- scipy >= 1.6.0
- statsmodels
- pip:
- nrel-pysam>=2.0
Expand Down
2 changes: 1 addition & 1 deletion ci/requirements-py3.11.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dependencies:
- python=3.11
- pytz
- requests
- scipy >= 1.5.0
- scipy >= 1.6.0
- statsmodels
- pip:
- nrel-pysam>=2.0
Expand Down
2 changes: 1 addition & 1 deletion ci/requirements-py3.12.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dependencies:
- python=3.12
- pytz
- requests
- scipy >= 1.5.0
- scipy >= 1.6.0
- statsmodels
- pip:
- nrel-pysam>=2.0
Expand Down
28 changes: 0 additions & 28 deletions ci/requirements-py3.7.yml

This file was deleted.

28 changes: 0 additions & 28 deletions ci/requirements-py3.8.yml

This file was deleted.

11 changes: 5 additions & 6 deletions ci/requirements-py3.7-min.yml → ci/requirements-py3.9-min.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,14 @@ dependencies:
- pytest-cov
- pytest-mock
- pytest-timeout
- python=3.7
- python=3.9
- pytz
- requests
- pip:
- dataclasses
- h5py==3.1.0
- numpy==1.17.3
- pandas==1.3.0
- scipy==1.5.0
- h5py==3.0.0
- numpy==1.19.3
- pandas==1.3.0 # min version of pvlib
- scipy==1.6.0
- pytest-rerunfailures # conda version is >3.6
- pytest-remotedata # conda package is 0.3.0, needs > 0.3.1
- requests-mock
2 changes: 1 addition & 1 deletion ci/requirements-py3.9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dependencies:
- python=3.9
- pytz
- requests
- scipy >= 1.5.0
- scipy >= 1.6.0
- statsmodels
- pip:
- nrel-pysam>=2.0
Expand Down
2 changes: 2 additions & 0 deletions docs/examples/agrivoltaics/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Agrivoltaic Systems Modelling
-----------------------------
Loading
Loading