-
Notifications
You must be signed in to change notification settings - Fork 73
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 #255 from NREL/release/2.1.0-beta.2
Release/2.1.0 beta.2
- Loading branch information
Showing
37 changed files
with
482 additions
and
330 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# flake8 linter configurations | ||
# see https://flake8.pycqa.org/en/latest/user/options.html | ||
|
||
[flake8] | ||
max-line-length = 99 | ||
max-doc-length = 99 | ||
per-file-ignores = | ||
# rdtools.x.y imported but unused | ||
__init__.py:F401 | ||
# invalid escape sequence '\s' | ||
versioneer.py:W605 |
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,34 @@ | ||
name: flake8 | ||
|
||
# since we're only checking PR diffs, only trigger on the pull_request event type. | ||
# note: the pull_request event happens on opened, reopened, and synchronize activities; | ||
# synchronize includes commits being pushed to the PR branch. | ||
# https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#pull_request | ||
on: [pull_request] | ||
|
||
jobs: | ||
lint: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.8] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 # fetch all branches, needed so we can diff against the target branch | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install flake8 | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install flake8 | ||
- name: List changed files | ||
run: | | ||
git diff --compact-summary "origin/$GITHUB_BASE_REF" | ||
- name: Run linter on changed files | ||
run: | | ||
git diff "origin/$GITHUB_BASE_REF" -- "*.py" | flake8 . --config=.flake8 --diff --count --statistics --show-source |
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
This file was deleted.
Oops, something went wrong.
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,28 @@ | ||
************************************************** | ||
v2.0.5 (2020-12-30) and v2.1.0-beta.2 (2021-01-29) | ||
************************************************** | ||
|
||
Testing | ||
------- | ||
* Add a flake8 code style check to the continuous integration checks (:pull:`231`) | ||
* Moved several pytest fixtures from ``soiling_test.py`` and ``availability_test.py`` to ``conftest.py`` | ||
so that they are shared across test files (:pull:`231`) | ||
* Add Python 3.9 to CI testing (:pull:`249`) | ||
* Fix test suite error raised when using pandas 1.2.0 (:pull:`251`) | ||
|
||
Documentation | ||
------------- | ||
* Organized example notebooks into a sphinx gallery (:pull:`240`) | ||
|
||
Requirements | ||
------------ | ||
* Add support for python 3.9 (:pull:`249`) | ||
* Update ``requirements.txt`` versions for numpy, scipy, pandas, h5py | ||
and statsmodels to versions that have wheels available for python | ||
3.6-3.9. Note that the minimum versions are unchanged. (:pull:`249`). | ||
|
||
Contributors | ||
------------ | ||
* Kevin Anderson (:ghuser:`kanderso-nrel`) | ||
* Michael Deceglie (:ghuser:`mdeceglie`) | ||
* Chris Deline (:ghuser:`cdeline`) |
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,27 @@ | ||
.. _examples: | ||
|
||
Examples | ||
======== | ||
|
||
This page shows example usage of the RdTools analysis functions. | ||
|
||
|
||
.. Note that the entries in the list below are nblink filenames, not notebook filenames! | ||
.. There is a limitation in sphinx that I don't understand, but it means that | ||
you cannot directly access files outside the source directory unless you use | ||
something like nbsphinx_link, which is what we do here. | ||
To add a notebook to the gallery, create a .nblink file and add it to the list below. | ||
Note: the make_github_url() function in conf.py assumes that the name of the .nblink file | ||
is the same as the notebook it points to! | ||
.. To select a thumbnail image, you need to edit the metadata of the cell with the | ||
desired image to include a special tags value: | ||
"metadata": {"tags": ["nbsphinx-thumbnail"]}, | ||
.. nbgallery:: | ||
|
||
examples/degradation_and_soiling_example_pvdaq_4 | ||
examples/TrendAnalysis_example_pvdaq4 | ||
examples/system_availability_example |
3 changes: 3 additions & 0 deletions
3
docs/sphinx/source/examples/TrendAnalysis_example_pvdaq4.nblink
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,3 @@ | ||
{ | ||
"path": "../../../TrendAnalysis_example_pvdaq4.ipynb" | ||
} |
3 changes: 3 additions & 0 deletions
3
docs/sphinx/source/examples/degradation_and_soiling_example_pvdaq_4.nblink
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,3 @@ | ||
{ | ||
"path": "../../../degradation_and_soiling_example_pvdaq_4.ipynb" | ||
} |
3 changes: 3 additions & 0 deletions
3
docs/sphinx/source/examples/system_availability_example.nblink
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,3 @@ | ||
{ | ||
"path": "../../../system_availability_example.ipynb" | ||
} |
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.