Skip to content

Commit 0f47d16

Browse files
committed
Merge branch 'main' into flake8-ci-to-local-runnable-commands-and-config
2 parents 4138d30 + 5f70c5a commit 0f47d16

97 files changed

Lines changed: 1696 additions & 669 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
- [ ] Closes #xxxx
44
- [ ] I am familiar with the [contributing guidelines](https://pvlib-python.readthedocs.io/en/latest/contributing/index.html)
5+
- [ ] I attest that all AI-generated material has been vetted for accuracy and is in compliance with the pvlib license
56
- [ ] Tests added
67
- [ ] Updates entries in [`docs/sphinx/source/reference`](https://github.com/pvlib/pvlib-python/blob/main/docs/sphinx/source/reference) for API changes.
78
- [ ] Adds description and name entries in the appropriate "what's new" file in [`docs/sphinx/source/whatsnew`](https://github.com/pvlib/pvlib-python/tree/main/docs/sphinx/source/whatsnew) for all changes. Includes link to the GitHub Issue with `` :issue:`num` `` or this Pull Request with `` :pull:`num` ``. Includes contributor name and/or GitHub username (link with `` :ghuser:`user` ``).

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ jobs:
9696
shell: bash -l {0} # necessary for conda env to be active
9797
env:
9898
# copy GitHub Secrets into environment variables for the tests to access
99-
NREL_API_KEY: ${{ secrets.NRELAPIKEY }}
99+
NLR_API_KEY: ${{ secrets.NRELAPIKEY }}
100100
SOLARANYWHERE_API_KEY: ${{ secrets.SOLARANYWHERE_API_KEY }}
101101
BSRN_FTP_USERNAME: ${{ secrets.BSRN_FTP_USERNAME }}
102102
BSRN_FTP_PASSWORD: ${{ secrets.BSRN_FTP_PASSWORD }}

.github/workflows/welcome.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Welcome First-Time Contributor
2+
3+
on:
4+
pull_request_target:
5+
types: opened
6+
7+
jobs:
8+
welcome:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
pull-requests: write
12+
steps:
13+
- uses: plbstl/first-contribution@v4
14+
with:
15+
pr-opened-msg: |
16+
### Hey @{fc-author}! :tada:
17+
18+
Thanks for opening your first pull request! We appreciate your
19+
contribution. Please ensure you have reviewed and understood the
20+
[contributing guidelines](https://pvlib-python.readthedocs.io/en/latest/contributing/index.html).
21+
22+
If AI is used for any portion of this PR, you must vet the content
23+
for technical accuracy.

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,8 @@ coverage.xml
9999
env
100100
results
101101

102+
103+
# Gas Town runtime
104+
.beads/
105+
.claude/
106+
.runtime/

benchmarks/benchmarks/scaling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def setup(self):
1515
lon = np.array((4.99, 5, 5.01))
1616
self.coordinates = np.array([(lati, loni) for
1717
(lati, loni) in zip(lat, lon)])
18-
self.times = pd.date_range('2019-01-01', freq='1T', periods=self.n)
18+
self.times = pd.date_range('2019-01-01', freq='1min', periods=self.n)
1919
self.positions = np.array([[0, 0], [100, 0], [100, 100], [0, 100]])
2020
self.clearsky_index = pd.Series(np.random.rand(self.n),
2121
index=self.times)

docs/examples/adr-pvarray/plot_fit_to_matrix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
25 1000 75.0 273.651
5252
26 1100 75.0 301.013
5353
'''
54-
df = pd.read_csv(StringIO(iec61853data), delim_whitespace=True)
54+
df = pd.read_csv(StringIO(iec61853data), sep=r"\s+")
5555

5656
# %%
5757
#

docs/examples/agrivoltaics/plot_diffuse_PAR_Spitters_relationship.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757

5858
solar_position = pvlib.solarposition.get_solarposition(
5959
# TMY timestamp is at end of hour, so shift to center of interval
60-
tmy.index.shift(freq="-30T"),
60+
tmy.index.shift(freq="-30min"),
6161
latitude=metadata["latitude"],
6262
longitude=metadata["longitude"],
6363
altitude=metadata["altitude"],

docs/examples/bifacial/plot_bifi_model_mc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
# create site location and times characteristics
4141
lat, lon = 36.084, -79.817
4242
tz = 'Etc/GMT+5'
43-
times = pd.date_range('2021-06-21', '2021-6-22', freq='1T', tz=tz)
43+
times = pd.date_range('2021-06-21', '2021-6-22', freq='1min', tz=tz)
4444

4545
# create site system characteristics
4646
axis_tilt = 0

docs/examples/bifacial/plot_bifi_model_pvwatts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
# using Greensboro, NC for this example
3333
lat, lon = 36.084, -79.817
3434
tz = 'Etc/GMT+5'
35-
times = pd.date_range('2021-06-21', '2021-06-22', freq='1T', tz=tz)
35+
times = pd.date_range('2021-06-21', '2021-06-22', freq='1min', tz=tz)
3636

3737
# create location object and get clearsky data
3838
site_location = location.Location(lat, lon, tz=tz, name='Greensboro, NC')

docs/examples/bifacial/plot_irradiance_nonuniformity_loss.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
# described in Figure 1 (A), [1]_. We will cover this case for educational
4848
# purposes, although it can be achieved with the packages
4949
# `solarfactors <https://github.com/pvlib/solarfactors/>`_ and
50-
# `bifacial_radiance <https://github.com/NREL/bifacial_radiance>`_.
50+
# `bifacial_radiance <https://github.com/NatLabRockies/bifacial_radiance>`_.
5151
#
5252
# Here we set and plot the global irradiance level of each cell.
5353

0 commit comments

Comments
 (0)