Commit d53f97e
Shaded Fraction on Sloped Terrains - PR1725 partial continuation (#1962)
* Update shading.py
* Minimal test
* Implementation
From NREL paper
* Fix, fix, fix, fix & format
* Format issues
* Extend tests (compare with singleaxis) & format with ruff
* Format fixes
* Upgrade tests
* Array -> Axis
* type
* Whatsnew
* xd
* bruh
* Minor Python optimization a la tracking.singleaxis
* Comment and minor optimizations
* Surface -> Axis
Co-Authored-By: Kevin Anderson <[email protected]>
* Elevation -> Zenith
Co-Authored-By: Kevin Anderson <[email protected]>
* Elev -> Zenith
Co-Authored-By: Kevin Anderson <[email protected]>
* Update shading.py
* Update docstring
Co-Authored-By: Anton Driesse <[email protected]>
* Add comments from `tracking.singleaxis`
Co-Authored-By: Will Holmgren <[email protected]>
Co-Authored-By: Mark Mikofski <[email protected]>
* Singleaxis implementation port & test addition, based on old pvlib.tracking.singleaxis
* Update v0.10.4.rst
* Linter
* Code review
Co-Authored-By: Cliff Hansen <[email protected]>
* Add Fig 5 [1] (still gotta check the built output)
* Add caption, change size and describe in alternate text
* rST fixes ?
* Figures have captions, images do not
https://pandemic-overview.readthedocs.io/en/latest/myGuides/reStructuredText-Images-and-Figures-Examples.html#id18
* Flip arguments order
* I forgot 💀
* Linter are you happy now?
* Remove port test and add edge cases test
Co-Authored-By: Kevin Anderson <[email protected]>
* Update test_shading.py
Co-Authored-By: Kevin Anderson <[email protected]>
* Indentation xd
* Update test_shading.py
* I forgot how to code
* Align data
* Docstring suggestion from Kevin
Co-Authored-By: Kevin Anderson <[email protected]>
* Update link to example?
* add linear shade loss for thin films
* add tests, update docs, what's new
* fix what's new gh issue and pr links
* fix trailing whitespace
* responding to comments
- move linear shade loss to shading module
- don't use ternary, doesn't work on vectors, instead use np.where()
- set cross axis default to zero
- test vectors
- update docs
* update docstring for linear shade loss
- applicable to other monolithic thin film like CIGS, not just CdTe
- only when shade is perpendicular to scribe lines
* update example in linear_shade_loss
* add figure and formulas to shaded fraction
* shaded fraction consistently
* Add alternative text to image
* Update implementation based on PSZ PR. See description.
Commit highlights ✨ :
* I think I made all the code a bit more legible; sorry for the big changes @mikofski
* Tests a bit more complete (not much, still consider the same test data)
* Rename shaded fraction acronym from `fs` to `sf`
* Asserts changed to `assert_allclose` for a more legible output in case of failure
Co-Authored-By: Mark Mikofski <[email protected]>
* Whatsnew entries
Co-Authored-By: Mark Mikofski <[email protected]>
* Linter
* Clear things, convert Mark's reference to a reference
* Linter
* Update according to changes at PSZA PR
* Another commit, another try
* Ahhh, I rebased too fast
* whatsnews
* Update v0.10.4.rst
* Update v0.10.3.rst
* Rename to `shaded_fraction1d`, change params to `surface_*` instead of `tracker_*`
* Left this tracker refs behind
* Change rename in rst entries
* Add another testcase
* Improve docs references, clarify nomenclature
Co-Authored-By: Kevin Anderson <[email protected]>
* Update test_shading.py
* Remove linear_shade_loss
* First implementation of the new shaded fraction model (missing figure)
* Create Anderson_Jensen_2024_Fig3.png
* Update shading.py
* Update shading.py
* Update shading.py
* lintaaargggg
* Fill reference
* Next release 0.10.5?
* Fix tests
* Update test_shading.py
* Little improvement to table definitions
* Change `l` to `\ell`
Co-Authored-By: Kevin Anderson <[email protected]>
* `pvlib.tracking.projected_solar_zenith_angle` to `pvlib.shading.projected_solar_zenith_angle`
Co-Authored-By: Kevin Anderson <[email protected]>
* pitch references to `pitch`
Co-Authored-By: Kevin Anderson <[email protected]>
* `trackers_axis_azimuth` to `axis_azimuth`
Co-Authored-By: Kevin Anderson <[email protected]>
* whatsnews
Co-Authored-By: Kevin Anderson <[email protected]>
* Update v0.10.5.rst
Co-Authored-By: Kevin Anderson <[email protected]>
* Change `tilt`s to `rotation`s and add `axis_tilt`
Co-Authored-By: Kevin Anderson <[email protected]>
* Forgot to update tests 💀
Co-Authored-By: Kevin Anderson <[email protected]>
* Add examples section
* roles assumption messin w/ me docs 😲
* roles assumption messin w/ me docs 😲
Co-Authored-By: Kevin Anderson <[email protected]>
* Update shading.py
* Update shading.py
* Add gallery example
* This was fixed in recent sphinx-gallery releases IIRC
* Extra empty line or admonition type unsupported
* Fix example link (hopefully 🙏 )
* Update shading.py
* Fix subsubsections?
* Nah, bulleted list didn't work
* tilted -> tracker, only affects text
* Typos and unreasonable physical values
Co-Authored-By: Kevin Anderson <[email protected]>
* See the Examples section below, not the unlinkable link
Co-Authored-By: Kevin Anderson <[email protected]>
* tracker -> row, param names, code and docs
Co-Authored-By: Kevin Anderson <[email protected]>
* Fix broken example 🔧
Co-Authored-By: Kevin Anderson <[email protected]>
* Apply suggestions from code review
Co-authored-by: Adam R. Jensen <[email protected]>
* "the row axis/axes" instead of ``axis_azimuth``
* Unnecessary math mode
Co-Authored-By: Adam R. Jensen <[email protected]>
* Example suggestions and text trimming
Co-Authored-By: Adam R. Jensen <[email protected]>
* whatsmes
* Add test to fix coverage issue
* Apply suggestions from code review (Adam)
Co-authored-by: Adam R. Jensen <[email protected]>
* Update docs/examples/shading/plot_shaded_fraction1d_ns_hsat_example.py
* Update docs/examples/shading/plot_shaded_fraction1d_ns_hsat_example.py
---------
Co-authored-by: Kevin Anderson <[email protected]>
Co-authored-by: Anton Driesse <[email protected]>
Co-authored-by: Will Holmgren <[email protected]>
Co-authored-by: Mark Mikofski <[email protected]>
Co-authored-by: Cliff Hansen <[email protected]>
Co-authored-by: Adam R. Jensen <[email protected]>
Co-authored-by: Kevin Anderson <[email protected]>1 parent eeec98c commit d53f97e
File tree
6 files changed
+505
-2
lines changed- docs
- examples/shading
- sphinx/source
- _images
- reference/effects_on_pv_system_output
- whatsnew
- pvlib
- tests
6 files changed
+505
-2
lines changedLines changed: 181 additions & 0 deletions
| 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 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
18 | 22 | | |
19 | 23 | | |
20 | 24 | | |
| |||
36 | 40 | | |
37 | 41 | | |
38 | 42 | | |
39 | | - | |
| 43 | + | |
| 44 | + | |
0 commit comments