-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit 1549874 Author: echedey-ls <[email protected]> Date: Wed Oct 9 13:41:14 2024 +0200 Delete _config.yml commit 5e40321 Author: echedey-ls <[email protected]> Date: Wed Oct 9 13:39:47 2024 +0200 Initial rework: docs/tests/pytest CI/port and update code
- Loading branch information
1 parent
3fdc03c
commit c3e51d4
Showing
65 changed files
with
3,568 additions
and
66 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,57 @@ | ||
name: pytest | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
fail-fast: false # run all matrix jobs even if one fails | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] | ||
suffix: [''] # placeholder as an alternative to "-min" | ||
include: | ||
- os: ubuntu-latest | ||
python-version: "3.7" | ||
suffix: -min | ||
|
||
runs-on: ${{ matrix.os }} | ||
env: | ||
# Dev requirement filename, e.g., ci/requirements-py3.9-min.txt or ci/requirements-py3.9.txt | ||
# these are pip-compatible requirements files | ||
REQUIREMENTS: ci/requirements-py${{ matrix.python-version }}${{ matrix.suffix }}.txt | ||
|
||
steps: | ||
# Check out only a limited depth and then pull tags to save time | ||
- name: Checkout source | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 100 | ||
|
||
- name: Get tags | ||
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* | ||
|
||
- name: Install Python ${{ matrix.python-version }}${{ matrix.suffix }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Set up test requirements | ||
# sets versions of dependencies in the requirements file first to avoid installing newer versions | ||
run: | | ||
pip install -r ${{ env.REQUIREMENTS }} | ||
pip freeze | ||
- name: Set up environment | ||
run: | | ||
pip install .[test] | ||
pip freeze | ||
- name: Run tests | ||
shell: bash -l {0} | ||
run: | | ||
pytest pvlib |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
matplotlib | ||
numpy | ||
pandas | ||
pvlib | ||
PyYAML | ||
scipy |
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,6 @@ | ||
matplotlib | ||
numpy | ||
pandas | ||
pvlib | ||
PyYAML | ||
scipy |
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,6 @@ | ||
matplotlib | ||
numpy | ||
pandas | ||
pvlib | ||
PyYAML | ||
scipy |
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,6 @@ | ||
matplotlib | ||
numpy | ||
pandas | ||
pvlib | ||
PyYAML | ||
scipy |
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,6 @@ | ||
matplotlib==3.5 | ||
numpy==1.10 | ||
pandas==1.4 | ||
pvlib==0.8 | ||
PyYAML==3.13 | ||
scipy==1.6 |
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,6 @@ | ||
matplotlib | ||
numpy | ||
pandas | ||
pvlib | ||
PyYAML | ||
scipy |
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,6 @@ | ||
matplotlib | ||
numpy | ||
pandas | ||
pvlib | ||
PyYAML | ||
scipy |
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,6 @@ | ||
matplotlib | ||
numpy | ||
pandas | ||
pvlib | ||
PyYAML | ||
scipy |
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,20 @@ | ||
# Minimal makefile for Sphinx documentation | ||
# | ||
|
||
# You can set these variables from the command line, and also | ||
# from the environment for the first two. | ||
SPHINXOPTS ?= | ||
SPHINXBUILD ?= sphinx-build | ||
SOURCEDIR = . | ||
BUILDDIR = _build | ||
|
||
# Put it first so that "make" without argument is like "make help". | ||
help: | ||
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
|
||
.PHONY: help Makefile | ||
|
||
# Catch-all target: route all unknown targets to Sphinx using the new | ||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). | ||
%: Makefile | ||
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
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,9 @@ | ||
.. py:module:: pvpltools.dataplusmeta | ||
Data + Metadata manipulation utils | ||
================================== | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
|
||
DataPlusMeta |
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,14 @@ | ||
.. py:module:: pvpltools.iec61853 | ||
IEC61853 Utils | ||
============== | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
|
||
convert_to_banded | ||
calc_spectral_factor | ||
BilinearInterpolator | ||
martin_ruiz | ||
martin_ruiz_diffuse | ||
faiman |
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,16 @@ | ||
.. currentmodule:: pvpltools | ||
|
||
.. _api: | ||
|
||
============= | ||
API Reference | ||
============= | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
:caption: Contents: | ||
|
||
dataplusmeta | ||
iec61853 | ||
module_efficiency | ||
power_conversion |
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,17 @@ | ||
.. py:module:: pvpltools.module_efficiency | ||
Module efficiency modelling | ||
=========================== | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
|
||
fit_efficiency_model | ||
adr | ||
heydenreich | ||
motherpv | ||
pvgis | ||
mpm6 | ||
mpm5 | ||
fit_bilinear | ||
bilinear |
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,12 @@ | ||
.. py:module:: pvpltools.power_conversion | ||
Power conversion | ||
================ | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
|
||
adr_converter_core | ||
fit_adr_converter_core | ||
create_cec_matrix_sandia | ||
fit_adr_to_sandia |
Oops, something went wrong.