Skip to content

Commit

Permalink
Merge pull request #33 from NREL/development
Browse files Browse the repository at this point in the history
pre-commit hooks
  • Loading branch information
martin-springer authored Dec 7, 2023
2 parents 3f9ddf5 + 5b2c275 commit 7f12df3
Show file tree
Hide file tree
Showing 81 changed files with 27,970 additions and 27,786 deletions.
2 changes: 1 addition & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[run]
omit=pvdeg/_version.py
omit=pvdeg/_version.py
2 changes: 1 addition & 1 deletion .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ jobs:
pip install ${{ matrix.env }}
- name: Test with pytest ${{ matrix.env }}
run: |
pytest
pytest
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,4 @@ demo/old
TEMP/

# Slurm log files
slurm-*.out
slurm-*.out
14 changes: 14 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/psf/black
rev: 23.11.0
hooks:
- id: black
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ python:
- method: pip
path: .
extra_requirements:
- docs
- docs
4 changes: 2 additions & 2 deletions DataLibrary/DegradationDatabase.json
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,8 @@
"B_2": { Value: 76.22, STDEV: 0.135 Units: "kJ/mol" },
"B_3": { Value: -0.005, STDEV: 0.012 Units: "1/%" },
"A": { Value: 0.073, STDEV: 0.02 },
"Corr-B_1-B_2": 0.985,
"Corr-B_1-B_3": 0.216,
"Corr-B_1-B_2": 0.985,
"Corr-B_1-B_3": 0.216,
"Corr-B_2-B_3": 0.0452, },
"D017": {
"DataEntryPerson": "Weston Wall",
Expand Down
2 changes: 1 addition & 1 deletion DataLibrary/kinetic_parameters.json
Original file line number Diff line number Diff line change
Expand Up @@ -276,4 +276,4 @@
"srv_bc": 0,
"comments": ""
}
}
}
2 changes: 1 addition & 1 deletion DataLibrary/materials.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@
"Eap": 28.08,
"Po": 833.55
}
}
}
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BSD 3-Clause License

Copyright 2020-2023 Alliance for Sustainable Energy, LLC
Copyright 2020-2023 Alliance for Sustainable Energy, LLC

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

Expand Down
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ include versioneer.py
include pvdeg/_version.py
include pvdeg/data/*
include LICENSE
graft DataLibrary
graft DataLibrary
2 changes: 1 addition & 1 deletion TEMP/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore
!.gitignore
48 changes: 24 additions & 24 deletions cla-1.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,28 @@ The Contributors License Agreement

Version 1.0
-----------
I agree to contribute to pvdeg.
I agree to the following terms and conditions for my contributions:
First, I agree that I am licensing the copyright to my contributions
under the terms of the current pvdeg license.
Second, I agree that, in order to conform to any future open source
software license(s) under which pvdeg may be provided, the terms of
my copyright license may be modified without any notice to me and
without my consent.
Third, I hereby grant to Alliance for Sustainable Energy, LLC,
to any successor manager and distributor of pvdeg appointed by
the U.S. Department of Energy, and to all recipients of
a version of pvdeg that includes my contributions, a non-exclusive,
worldwide, royalty-free, irrevocable patent license under any patent
claims owned by me, or owned by my employer and known to me, that
are or will be, necessarily infringed upon by my contributions alone,
or by combination of my contributions with the version of pvdeg
to which they are contributed, to make, have made, use, offer to sell,
sell, import, and otherwise transfer any version of pvdeg that
includes my contributions, in source code and object code form.
Fourth, I represent and warrant that I am authorized to make the
contributions and grant the foregoing license(s).
Additionally, if, to my knowledge, my employer has rights to
intellectual property that covers my contributions, I represent
and warrant that I have received permission to make these contributions
I agree to contribute to pvdeg.
I agree to the following terms and conditions for my contributions:
First, I agree that I am licensing the copyright to my contributions
under the terms of the current pvdeg license.
Second, I agree that, in order to conform to any future open source
software license(s) under which pvdeg may be provided, the terms of
my copyright license may be modified without any notice to me and
without my consent.
Third, I hereby grant to Alliance for Sustainable Energy, LLC,
to any successor manager and distributor of pvdeg appointed by
the U.S. Department of Energy, and to all recipients of
a version of pvdeg that includes my contributions, a non-exclusive,
worldwide, royalty-free, irrevocable patent license under any patent
claims owned by me, or owned by my employer and known to me, that
are or will be, necessarily infringed upon by my contributions alone,
or by combination of my contributions with the version of pvdeg
to which they are contributed, to make, have made, use, offer to sell,
sell, import, and otherwise transfer any version of pvdeg that
includes my contributions, in source code and object code form.
Fourth, I represent and warrant that I am authorized to make the
contributions and grant the foregoing license(s).
Additionally, if, to my knowledge, my employer has rights to
intellectual property that covers my contributions, I represent
and warrant that I have received permission to make these contributions
and grant the foregoing license(s) on behalf of my employer.
5 changes: 2 additions & 3 deletions contributors/mcbrown042.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
2021-03-02

I hereby agree to the terms of the Contributors License Agreement,
I hereby agree to the terms of the Contributors License Agreement,
version 1.0, with MD5 checksum 46ea45f996295bdb0652333d516a6d0a.

I furthermore declare that I am authorized and able to make this
I furthermore declare that I am authorized and able to make this
agreement and sign this declaration.

Signed,

Matthew C Brown https://github.com/mcbrown042

5 changes: 2 additions & 3 deletions contributors/shirubana.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
2020-06-26

I hereby agree to the terms of the Contributors License Agreement,
I hereby agree to the terms of the Contributors License Agreement,
version 1.0, with MD5 checksum 46ea45f996295bdb0652333d516a6d0a.

I furthermore declare that I am authorized and able to make this
I furthermore declare that I am authorized and able to make this
agreement and sign this declaration.

Signed,

Silvana Ayala Pelaez https://github.com/shirubana

25 changes: 6 additions & 19 deletions docs/sphinx/source/_autosummary/pvdeg.collection.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,17 @@

.. automodule:: pvdeg.collection












.. rubric:: Functions

.. autosummary::

calculate_jsc_from_tau_cp
calculate_jsc_from_tau_iqe
collection_probability
generation_current













25 changes: 6 additions & 19 deletions docs/sphinx/source/_autosummary/pvdeg.degradation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,18 @@

.. automodule:: pvdeg.degradation












.. rubric:: Functions

.. autosummary::

IwaArrhenius
IwaVantHoff
arrhenius_deg
degradation
vantHoff_deg













23 changes: 5 additions & 18 deletions docs/sphinx/source/_autosummary/pvdeg.design.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,15 @@

.. automodule:: pvdeg.design







.. rubric:: Functions

.. autosummary::

edge_seal_ingress_rate
edge_seal_width












.. rubric:: Functions

.. autosummary::

edge_seal_ingress_rate
edge_seal_width
21 changes: 4 additions & 17 deletions docs/sphinx/source/_autosummary/pvdeg.fatigue.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,14 @@

.. automodule:: pvdeg.fatigue







.. rubric:: Functions

.. autosummary::

solder_fatigue












.. rubric:: Functions

.. autosummary::

solder_fatigue
25 changes: 6 additions & 19 deletions docs/sphinx/source/_autosummary/pvdeg.humidity.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@

.. automodule:: pvdeg.humidity












.. rubric:: Functions

.. autosummary::

Ce_numba
back_encap
backsheet
Expand All @@ -23,16 +23,3 @@
psat
run_module
surface_outside













25 changes: 6 additions & 19 deletions docs/sphinx/source/_autosummary/pvdeg.letid.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@

.. automodule:: pvdeg.letid












.. rubric:: Functions

.. autosummary::

calc_device_params
calc_dn
calc_energy_loss
Expand All @@ -30,16 +30,3 @@
j0_gray
k_ij
tau_now













Loading

0 comments on commit 7f12df3

Please sign in to comment.