Skip to content

Commit 9d8ca55

Browse files
authored
Remove pvlib.forecast (#1766)
* delete forecast code and doc files * scrub test configuration * remove netcdf4, siphon, cftime dependencies * nix forecast notebooks * whatsnew
1 parent e643dc3 commit 9d8ca55

22 files changed

+13
-9849
lines changed

.github/workflows/pytest-remote-data.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ jobs:
100100
SOLARANYWHERE_API_KEY: ${{ secrets.SOLARANYWHERE_API_KEY }}
101101
BSRN_FTP_USERNAME: ${{ secrets.BSRN_FTP_USERNAME }}
102102
BSRN_FTP_PASSWORD: ${{ secrets.BSRN_FTP_PASSWORD }}
103-
run: pytest pvlib/tests/iotools pvlib/tests/test_forecast.py --cov=./ --cov-report=xml --remote-data
103+
run: pytest pvlib/tests/iotools --cov=./ --cov-report=xml --remote-data
104104

105105
- name: Upload coverage to Codecov
106106
if: matrix.python-version == 3.7 && matrix.suffix == ''

.github/workflows/pytest.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ jobs:
7878
- name: Run tests
7979
shell: bash -l {0} # necessary for conda env to be active
8080
run: |
81-
# ignore iotools & forecast; those tests are run in a separate workflow
82-
pytest pvlib --cov=./ --cov-report=xml --ignore=pvlib/tests/iotools --ignore=pvlib/tests/test_forecast.py
81+
# ignore iotools; those tests are run in a separate workflow
82+
pytest pvlib --cov=./ --cov-report=xml --ignore=pvlib/tests/iotools
8383
8484
- name: Upload coverage to Codecov
8585
if: matrix.python-version == 3.7 && matrix.suffix == '' && matrix.os == 'ubuntu-latest' && matrix.environment-type == 'conda'

ci/requirements-py3.10.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ dependencies:
77
- cython
88
- ephem
99
- h5py
10-
- netcdf4
1110
- numba
1211
- numpy >= 1.16.0
1312
- pandas >= 0.25.0

ci/requirements-py3.11.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ dependencies:
77
- cython
88
- ephem
99
- h5py
10-
- netcdf4
1110
- numba
1211
- numpy >= 1.16.0
1312
- pandas >= 0.25.0

ci/requirements-py3.7.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ dependencies:
77
- cython
88
- ephem
99
- h5py
10-
- netcdf4
1110
- numba
1211
- numpy >= 1.16.0
1312
- pandas >= 0.25.0
@@ -23,7 +22,6 @@ dependencies:
2322
- pytz
2423
- requests
2524
- scipy >= 1.4.0
26-
- siphon # conda-forge
2725
- statsmodels
2826
- pip:
2927
- nrel-pysam>=2.0

ci/requirements-py3.8.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ dependencies:
77
- cython
88
- ephem
99
- h5py
10-
- netcdf4
1110
- numba
1211
- numpy >= 1.16.0
1312
- pandas >= 0.25.0
@@ -23,7 +22,6 @@ dependencies:
2322
- pytz
2423
- requests
2524
- scipy >= 1.4.0
26-
- siphon # conda-forge
2725
- statsmodels
2826
- pip:
2927
- nrel-pysam>=2.0

ci/requirements-py3.9.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ dependencies:
77
- cython
88
- ephem
99
- h5py
10-
- netcdf4
1110
- numba
1211
- numpy >= 1.16.0
1312
- pandas >= 0.25.0

codecov.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ codecov:
33
require_ci_to_pass: no
44

55
# "flags" are used to identify subsets of the overall codebase when calculating coverage.
6-
# Currently used for "remote_data" (pvlib.iotools & forecast) and "core" (everything else).
6+
# Currently used for "remote_data" (pvlib.iotools) and "core" (everything else).
77
# Because we only run the remote_data tests sometimes, we need to split it out so that
88
# codecov doesn't report a big drop in coverage when we don't run them.
99
# We also use "carryforward: true" so that, when we don't run remote_data tests, the last
@@ -16,16 +16,12 @@ flags:
1616
- pvlib/
1717
- '!pvlib/iotools/'
1818
- '!pvlib/tests/iotools/'
19-
- '!pvlib/forecast.py'
20-
- '!pvlib/tests/test_forecast.py'
2119
carryforward: false
2220

2321
remote-data:
2422
paths:
2523
- pvlib/iotools/
2624
- pvlib/tests/iotools
27-
- pvlib/forecast.py
28-
- pvlib/tests/test_forecast.py
2925
carryforward: true # if not run, use coverage from previous commit
3026

3127

@@ -53,15 +49,13 @@ coverage:
5349
paths:
5450
- 'pvlib/tests/.*'
5551
- '!pvlib/tests/iotools/.*'
56-
- '!pvlib/tests/test_forecast.py'
5752
flags:
5853
- core
5954

6055
tests-remote-data:
6156
target: 95%
6257
paths:
6358
- 'pvlib/tests/iotools/.*'
64-
- 'pvlib/tests/test_forecast.py'
6559
flags:
6660
- remote-data
6761

docs/sphinx/source/reference/forecasting.rst

Lines changed: 0 additions & 63 deletions
This file was deleted.

docs/sphinx/source/reference/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ API reference
1616
effects_on_pv_system_output/index
1717
tracking
1818
iotools
19-
forecasting
2019
modelchain
2120
bifacial
2221
scaling

0 commit comments

Comments
 (0)