Commit 66d43b3
Add test coverage for
* BUG: fix dirint KeyError with scalar inputs on pandas >= 2.0
* TST,CHANGELOG: add test and whatsnew entry for dirint scalar fix GH#2751
* BUG: fix dirint KeyError for scalar inputs on pandas >= 2.0
* STY: fix flake8 whitespace and blank line errors
* BUG: add test coverage for dirint with array-like inputs GH#2751
* Update pvlib/irradiance.py
Co-authored-by: Cliff Hansen <cwhanse@sandia.gov>
* Update pvlib/irradiance.py
Co-authored-by: Cliff Hansen <cwhanse@sandia.gov>
* TST: fix test_dirint_array_inputs to use 2 time points
* BUG: raise ValueError in dirint when use_delta_kt_prime=True and len(times)<2
* Update pvlib/irradiance.py
Co-authored-by: Cliff Hansen <cwhanse@sandia.gov>
* Update pvlib/irradiance.py
Co-authored-by: Cliff Hansen <cwhanse@sandia.gov>
* Update tests/test_irradiance.py
Co-authored-by: Cliff Hansen <cwhanse@sandia.gov>
* TST: remove orphaned times_single reference from dirint test
* STY: fix line length and blank lines in dirint docstring
---------
Co-authored-by: Cliff Hansen <cwhanse@sandia.gov>irradiance.dirint for array and series inputs (#2752)1 parent 7929b38 commit 66d43b3
3 files changed
Lines changed: 41 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
21 | 24 | | |
22 | 25 | | |
23 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
136 | 138 | | |
137 | 139 | | |
138 | 140 | | |
| |||
146 | 148 | | |
147 | 149 | | |
148 | 150 | | |
149 | | - | |
| 151 | + | |
| 152 | + | |
150 | 153 | | |
151 | 154 | | |
152 | 155 | | |
153 | 156 | | |
154 | | - | |
| 157 | + | |
| 158 | + | |
155 | 159 | | |
156 | 160 | | |
157 | 161 | | |
| |||
1972 | 1976 | | |
1973 | 1977 | | |
1974 | 1978 | | |
1975 | | - | |
1976 | | - | |
1977 | | - | |
| 1979 | + | |
| 1980 | + | |
1978 | 1981 | | |
1979 | 1982 | | |
1980 | 1983 | | |
1981 | | - | |
1982 | | - | |
| 1984 | + | |
| 1985 | + | |
| 1986 | + | |
1983 | 1987 | | |
1984 | 1988 | | |
1985 | 1989 | | |
| |||
2117 | 2121 | | |
2118 | 2122 | | |
2119 | 2123 | | |
| 2124 | + | |
2120 | 2125 | | |
2121 | 2126 | | |
2122 | 2127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1147 | 1147 | | |
1148 | 1148 | | |
1149 | 1149 | | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
1150 | 1175 | | |
1151 | 1176 | | |
1152 | 1177 | | |
| |||
0 commit comments