Commit 2d0ed71
Add extraterrestrial and direct spectra of ASTM G173-03 standard spectrum (AM1.5) (#2039)
* Implement all for spectrum.get_ASTM_G173
* Full implementation
Implement, test and document spectrum.get_ASTM_G173
Modify spectrum.get_am15g as a wrapper of the latter
Delete old file
Implementation note: I've used pandas interpolate instead of scipy's because the latter is considered legacy. See docs at https://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.interp1d.html
* Minor updates to docs
* Add print statements to examples
* Add example from my other branch
* Microoptimization 🚀
* Fix implementation
* Format with Ruff, thx Ruff 💚
* Update v0.11.0.rst
* Change signature to `get_standard_spectrum`, future-proof implementation
* linter 🌋
* Update plot_standard_ASTM_G173-03.py
Co-Authored-By: Kevin Anderson <57452607+kandersolar@users.noreply.github.com>
* Update mismatch.py
Co-Authored-By: Kevin Anderson <57452607+kandersolar@users.noreply.github.com>
* Update mismatch.py
Co-Authored-By: Kevin Anderson <57452607+kandersolar@users.noreply.github.com>
* reference->standard & docs
Co-Authored-By: Kevin Anderson <57452607+kandersolar@users.noreply.github.com>
* docs
Co-Authored-By: Kevin Anderson <57452607+kandersolar@users.noreply.github.com>
* Fixes
Co-Authored-By: Kevin Anderson <57452607+kandersolar@users.noreply.github.com>
* Fix tests, I'm kinda stupid
* Deprecation announcement in condition
* duh
* Update mismatch.py
* Add fail on version
* Units
* Unit formatting, forgot this
* Remove deprecated admonition duplicate
Co-Authored-By: Kevin Anderson <57452607+kandersolar@users.noreply.github.com>
* Unit formatting went too far
Co-Authored-By: Kevin Anderson <57452607+kandersolar@users.noreply.github.com>
* Function rename to get_reference_spectrum
Co-Authored-By: Kevin Anderson <57452607+kandersolar@users.noreply.github.com>
* Clean warnings from test logs
Co-Authored-By: Kevin Anderson <57452607+kandersolar@users.noreply.github.com>
* Fix wrongly made test
https: //stackoverflow.com/questions/65255622/anydf-isna-returns-true-when-no-nans-are-present
Co-Authored-By: Kevin Anderson <57452607+kandersolar@users.noreply.github.com>
* Other get_am15g references in code
Co-Authored-By: Kevin Anderson <57452607+kandersolar@users.noreply.github.com>
* Update plot_standard_ASTM_G173-03.py
Co-Authored-By: Kevin Anderson <57452607+kandersolar@users.noreply.github.com>
* lintar
* Order of commits matter
Co-Authored-By: Kevin Anderson <57452607+kandersolar@users.noreply.github.com>
* Rm units of function not in scope
Co-Authored-By: Kevin Anderson <57452607+kandersolar@users.noreply.github.com>
* Rename function to get_reference_spectra
Co-Authored-By: Kevin Anderson <57452607+kandersolar@users.noreply.github.com>
Co-Authored-By: Mark Campanelli <mark.campanelli@gmail.com>
* Code Review from Kevin
Co-Authored-By: Kevin Anderson <57452607+kandersolar@users.noreply.github.com>
* linter :D
Co-Authored-By: Kevin Anderson <57452607+kandersolar@users.noreply.github.com>
* Remove stupid keyword-only params requirement
Co-Authored-By: Mark Campanelli <mark.campanelli@gmail.com>
---------
Co-authored-by: Kevin Anderson <57452607+kandersolar@users.noreply.github.com>
Co-authored-by: Mark Campanelli <mark.campanelli@gmail.com>1 parent 19c9598 commit 2d0ed71
File tree
8 files changed
+2228
-2030
lines changed- docs
- examples/spectrum
- sphinx/source
- reference/effects_on_pv_system_output
- whatsnew
- pvlib
- data
- spectrum
- tests
8 files changed
+2228
-2030
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
23 | 27 | | |
24 | 28 | | |
25 | 29 | | |
| |||
38 | 42 | | |
39 | 43 | | |
40 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
41 | 48 | | |
42 | 49 | | |
43 | 50 | | |
| |||
0 commit comments