Commit 3885beb
Implement ANTS-2D bifacial irradiance model (#2740)
* ants2d and new VF code
* remove some cruft
* add tests for ants2d._shaded_fraction
* refactoring and more tests
* tests for _apply_ground_slope
* tests for _apply_sky_diffuse_model
* fix return shape and tests for vf_row_ground_2d_integ
* fix return shape and tests for vf_row_sky_2d_integ
* major docstring cleanup
* standardize to "back" instead of "rear"
* shape fixes, pandas out
* bugfix in unshaded ground fraction
* add several tests for main function
* test updates
* better return type logic; more get_irradiance tests
* expose max_rows, more get_irradiance tests
* fix issue with horizontal array and large max_rows
* fix unshaded_ground_fraction for horizontal special case
* fix row->ground VF edge case
* switch default model from isotropic to perez
* add hardcoded regression test
* alphabetize module imports
* docstring work
* utils functions: make height and pitch optional
* get infinite_sheds working again
* polishing
* fix output when surface angle is scalar but irrad is array
* simplify numpy import
* add option to return irradiance incident on ground surface
* more tests for ground irradiance
* one more test
* use `assert_allclose`, not `assert np.isclose`
* allow specifying custom row/ground subsets
* lint
* use `poa_` for `return_components=True` after #2627
* misc cleanup
* fix squeeze bug
* deprecate `npoints`, `vectorize`
* fix deprecation version
* lint
* docstring cleanup
* whatsnew entries
* fix broken gallery example
* add `reference` docs entry and user guide description
* add test to cover untested branch
* feedback from review
Co-Authored-By: Cliff Hansen <5393711+cwhanse@users.noreply.github.com>
* Update pvlib/bifacial/utils.py
Co-authored-by: Cliff Hansen <cwhanse@sandia.gov>
* adopt new description for `phi`
* Update pvlib/bifacial/utils.py
Co-authored-by: Cliff Hansen <cwhanse@sandia.gov>
* changes from review
* allow perez_driesse
* add reference to utils functions
* move g0, g1 to end of function signatures
* fix whatsnew merge
* update tests for #1867
* Apply suggestions from code review
Co-authored-by: Cliff Hansen <cwhanse@sandia.gov>
* clarifications from review by @cwhanse
* Update pvlib/bifacial/ants2d.py
Co-authored-by: Cliff Hansen <cwhanse@sandia.gov>
* transfer whatsnew entries to 0.15.3
* fix bad merge
* compute airmass, dni_extra as needed
* clarifying comments
* lint
* apply suggested edit
* Apply suggestions from code review
Co-authored-by: Cliff Hansen <cwhanse@sandia.gov>
* lint
* address comment nit
* Apply suggestions from code review
Co-authored-by: Will Hobbs <45701090+williamhobbs@users.noreply.github.com>
* update tests per review
* add notes on fixed-tilt
* fix bad whatsnew auto-merge
* tweaks to user's guide page
* changes from review
* Update pvlib/bifacial/utils.py
Co-authored-by: Adam R. Jensen <39184289+AdamRJensen@users.noreply.github.com>
* Update pvlib/bifacial/utils.py
Co-authored-by: Adam R. Jensen <39184289+AdamRJensen@users.noreply.github.com>
* Update pvlib/bifacial/ants2d.py
Co-authored-by: Adam R. Jensen <39184289+AdamRJensen@users.noreply.github.com>
* Update pvlib/bifacial/ants2d.py
Co-authored-by: Adam R. Jensen <39184289+AdamRJensen@users.noreply.github.com>
* lint
---------
Co-authored-by: Cliff Hansen <5393711+cwhanse@users.noreply.github.com>
Co-authored-by: Cliff Hansen <cwhanse@sandia.gov>
Co-authored-by: Will Hobbs <45701090+williamhobbs@users.noreply.github.com>
Co-authored-by: Adam R. Jensen <39184289+AdamRJensen@users.noreply.github.com>1 parent 73cda3d commit 3885beb
11 files changed
Lines changed: 1975 additions & 188 deletions
File tree
- docs
- examples/agrivoltaics
- sphinx/source
- reference
- user_guide/modeling_topics
- whatsnew
- pvlib/bifacial
- tests/bifacial
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
144 | | - | |
145 | | - | |
| 143 | + | |
146 | 144 | | |
147 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
148 | 152 | | |
149 | 153 | | |
150 | 154 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
Lines changed: 22 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
53 | | - | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| |||
101 | 102 | | |
102 | 103 | | |
103 | 104 | | |
104 | | - | |
| 105 | + | |
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
| |||
111 | 112 | | |
112 | 113 | | |
113 | 114 | | |
114 | | - | |
| 115 | + | |
115 | 116 | | |
116 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
117 | 132 | | |
118 | 133 | | |
119 | 134 | | |
| |||
124 | 139 | | |
125 | 140 | | |
126 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
127 | 145 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
13 | 22 | | |
14 | 23 | | |
| 24 | + | |
15 | 25 | | |
16 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
17 | 30 | | |
18 | 31 | | |
19 | 32 | | |
| |||
34 | 47 | | |
35 | 48 | | |
36 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
37 | 58 | | |
38 | 59 | | |
39 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
| |||
0 commit comments