Skip to content

Commit 07d3994

Browse files
Merge pull request #37 from markcampanelli/main
pyproject.toml for builds, using setuptools_scm for versioning
2 parents 7f12df3 + 236d805 commit 07d3994

30 files changed

+350
-2716
lines changed

.coveragerc

-2
This file was deleted.

.github/workflows/pytest.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ jobs:
1616
matrix:
1717
python-version: ["3.9", "3.10", "3.11"]
1818
env: [
19-
'-r requirements.txt .[test]',
2019
'--upgrade --upgrade-strategy=eager .[test]'
2120
]
2221

@@ -28,8 +27,8 @@ jobs:
2827
python-version: ${{ matrix.python-version }}
2928
- name: Install ${{ matrix.env }}
3029
run: |
31-
python -m pip install --upgrade pip wheel
32-
pip install ${{ matrix.env }}
30+
python -m pip install --progress-bar off --upgrade pip
31+
python -m pip install --progress-bar off ${{ matrix.env }}
3332
- name: Test with pytest ${{ matrix.env }}
3433
run: |
35-
pytest
34+
python -m pytest

MANIFEST.in

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
include versioneer.py
2-
include pvdeg/_version.py
31
include pvdeg/data/*
4-
include LICENSE
2+
include *.md
53
graft DataLibrary

README.md

+13-17
Original file line numberDiff line numberDiff line change
@@ -50,28 +50,24 @@ It takes a minute to load the environment.
5050

5151
### Locally
5252

53-
You can also run the tutorial locally with
54-
[miniconda](https://docs.conda.io/en/latest/miniconda.html) by following thes
55-
steps:
56-
57-
1. Install [miniconda](https://docs.conda.io/en/latest/miniconda.html).
58-
59-
1. Clone the repository:
53+
You can also run the tutorial locally in a virtual environment, i.e., `venv` or
54+
[miniconda](https://docs.conda.io/en/latest/miniconda.html).
6055

56+
1. Create and activate a new environment, e.g., on Mac/Linux terminal with `venv`:
6157
```
62-
git clone https://github.com/NREL/PVDegradationTools.git
58+
python -m venv pvdeg
59+
. pvdeg/bin/activate
6360
```
64-
65-
1. Create the environment and install the requirements. The repository includes
66-
a `requirements.txt` file that contains a list the packages needed to run
67-
this tutorial. To install them using conda run:
68-
61+
or with `conda`:
6962
```
70-
conda create -n pvdeg jupyter -c pvlib --file requirements.txt
63+
conda create -n pvdeg
7164
conda activate pvdeg
7265
```
7366

74-
or you can install it with `pip install pvdeg` as explained in the installation instructions into the environment.
67+
1. Install `pvdeg` into the new environment with `pip`:
68+
```
69+
python -m pip install pvdeg
70+
```
7571

7672
1. Start a Jupyter session:
7773

@@ -98,9 +94,9 @@ Install with:
9894

9995
pip install pvdeg
10096

101-
For developer installation, download the repository, navigate to the folder location and install as:
97+
For developer installation, clone the repository, navigate to the folder location and install as:
10298

103-
pip install -e .
99+
pip install -e .[all]
104100

105101

106102
License

contributors/markcampanelli.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2024-01-09
2+
3+
I hereby agree to the terms of the Contributors License Agreement,
4+
version 1.0, with MD5 checksum 46ea45f996295bdb0652333d516a6d0a.
5+
6+
I furthermore declare that I am authorized and able to make this
7+
agreement and sign this declaration.
8+
9+
Signed,
10+
11+
Mark Campanelli https://github.com/markcampanelli

docs/sphinx/source/_autosummary/pvdeg.collection.rst

+19-6
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,30 @@
33

44
.. automodule:: pvdeg.collection
55

6+
7+
8+
69

7-
8-
9-
10-
11-
10+
11+
1212
.. rubric:: Functions
1313

1414
.. autosummary::
15-
15+
1616
calculate_jsc_from_tau_cp
1717
calculate_jsc_from_tau_iqe
1818
collection_probability
1919
generation_current
20+
21+
22+
23+
24+
25+
26+
27+
28+
29+
30+
31+
32+

docs/sphinx/source/_autosummary/pvdeg.degradation.rst

+19-6
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,31 @@
33

44
.. automodule:: pvdeg.degradation
55

6+
7+
8+
69

7-
8-
9-
10-
11-
10+
11+
1212
.. rubric:: Functions
1313

1414
.. autosummary::
15-
15+
1616
IwaArrhenius
1717
IwaVantHoff
1818
arrhenius_deg
1919
degradation
2020
vantHoff_deg
21+
22+
23+
24+
25+
26+
27+
28+
29+
30+
31+
32+
33+

docs/sphinx/source/_autosummary/pvdeg.design.rst

+18-5
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,28 @@
33

44
.. automodule:: pvdeg.design
55

6+
7+
8+
69

10+
11+
12+
.. rubric:: Functions
713

14+
.. autosummary::
15+
16+
edge_seal_ingress_rate
17+
edge_seal_width
18+
19+
820

21+
22+
23+
924

25+
26+
27+
1028

1129

12-
.. rubric:: Functions
1330

14-
.. autosummary::
15-
16-
edge_seal_ingress_rate
17-
edge_seal_width

docs/sphinx/source/_autosummary/pvdeg.fatigue.rst

+17-4
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,27 @@
33

44
.. automodule:: pvdeg.fatigue
55

6+
7+
8+
69

10+
11+
12+
.. rubric:: Functions
713

14+
.. autosummary::
15+
16+
solder_fatigue
17+
18+
819

20+
21+
22+
923

24+
25+
26+
1027

1128

12-
.. rubric:: Functions
1329

14-
.. autosummary::
15-
16-
solder_fatigue

docs/sphinx/source/_autosummary/pvdeg.humidity.rst

+19-7
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33

44
.. automodule:: pvdeg.humidity
55

6+
7+
8+
69

7-
8-
9-
10-
11-
10+
11+
1212
.. rubric:: Functions
1313

1414
.. autosummary::
15-
15+
1616
Ce_numba
1717
back_encap
1818
backsheet
@@ -21,5 +21,17 @@
2121
front_encap
2222
module
2323
psat
24-
run_module
2524
surface_outside
25+
26+
27+
28+
29+
30+
31+
32+
33+
34+
35+
36+
37+

docs/sphinx/source/_autosummary/pvdeg.letid.rst

+19-6
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33

44
.. automodule:: pvdeg.letid
55

6+
7+
8+
69

7-
8-
9-
10-
11-
10+
11+
1212
.. rubric:: Functions
1313

1414
.. autosummary::
15-
15+
1616
calc_device_params
1717
calc_dn
1818
calc_energy_loss
@@ -30,3 +30,16 @@
3030
j0_gray
3131
k_ij
3232
tau_now
33+
34+
35+
36+
37+
38+
39+
40+
41+
42+
43+
44+
45+

docs/sphinx/source/_autosummary/pvdeg.spectral.rst

+18-5
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,28 @@
33

44
.. automodule:: pvdeg.spectral
55

6+
7+
8+
69

10+
11+
12+
.. rubric:: Functions
713

14+
.. autosummary::
15+
16+
poa_irradiance
17+
solar_position
18+
19+
820

21+
22+
23+
924

25+
26+
27+
1028

1129

12-
.. rubric:: Functions
1330

14-
.. autosummary::
15-
16-
poa_irradiance
17-
solar_position

docs/sphinx/source/_autosummary/pvdeg.standards.rst

+18-6
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,28 @@
33

44
.. automodule:: pvdeg.standards
55

6+
7+
8+
69

10+
11+
12+
.. rubric:: Functions
713

14+
.. autosummary::
15+
16+
eff_gap
17+
standoff
18+
19+
820

21+
22+
23+
924

25+
26+
27+
1028

1129

12-
.. rubric:: Functions
1330

14-
.. autosummary::
15-
16-
calc_standoff
17-
eff_gap
18-
run_calc_standoff

0 commit comments

Comments
 (0)