Commit 5b4ba72
authored
move celltemp functions to celltemp.py, expose celltemp.pvsyst in ModelChain (#682)
* move celltemp functions to celltemp.py, fix docstring for pvsystem.PVSystem.sapm
* formatting
* formatting
* initial commit fit_cec_using_sam
* outline ivcurves
* use nrel-pysam
* remove sam_dir
* add Sandia single curve fit
* complete function
* add test, move code to ivtools.py
* remove single files
* fix mock
* add celltemp.pvsyst as a ModelChain option, change order of arguments in celltemp.samp
* lint
* argument order fixes
* another argument order fix
* another argument order fix, change model_params to model in celltemp.pvsyst
* more model_params to model cleanup
* pare back modelchain test
* put test back in to hit ModelChain.pvsyst_temp
* output dataframe from celltemp.pvsyst
* cleanup tests with pvsyst output as dataframe
* fix dataframe creation in celltemp.pvsyst
* fix type checking
* fix test condition
* update api, whatsnew
* comment responses
* change arguments for celltemp.sapm
* fix conflict
* fix kwarg error
* update whatsnew
* test fixes, table formatting
* docstring fixes
* edits to celltemp.pvsyst
* add PVsystem properties, move PVsystem tests back to test_pvsystem.py
* start working on ModelChain
* fix ModelChain tests
* modelchain fixes
* modelchain test fixes
* modelchain test fixes
* more modelchain test fixes
* add infer_temp_model
* lint, test fixes
* yet more modelchain test fixes
* update whatsnew, improve coverage
* fix deprecated test
* fix import
* one more MC test fix
* rename functions, change output type
* change argument names, add parameter_set lookup
* fix function names
* fix function names more
* update modelchain and tests
* more test fixes
* test fixes
* lint
* lint, merge master
* lint, remove pvwatts_dc_pvwatts_ac_system fixture from test_modelchain.py
* rename from celltemp to temperature
* lint, rename test_celltemp.py
* cleanup docstrings
* add invalid test for infer_temp_model
* review comments
* remove unrelated code
* handle deprecated attributes and functions
* test fixes
* fix documentation
* fix infer_temp_model naming, whatsnew
* test fixes and docstring edits
* handle ModelChain deprecated behavior, test type input of _translate functions
* test fixes
* fix tests
* another test fix
* pop unused kwarg
* improve test coverage
* test fixes
* add UserWarning
* improve warnings
* use property setter
* test fixes
* yet another code fix trying to distinguish kwargs from attribute of same name
* still struggling with tests
* reset system between ModelChain init
* infer parameters from racking, module_type
* add the missing colon
* delete vestigial lines
* test fixes
* fix tests, reformat whatsnew section
* test fix
* better handling of deprecated behavior, add consistency check temperature_model vs. temperature_model_parameters
* fix method check
* missing .
* update tests
* remove duplicate test value, clarify TODO comment
* consistent import of tools
* insert blank line
* remove parameter_set arg from PVSystem methods
* lint1 parent a873462 commit 5b4ba72
File tree
14 files changed
+1142
-455
lines changed- docs/sphinx/source
- whatsnew
- pvlib
- test
14 files changed
+1142
-455
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
224 | 234 | | |
225 | 235 | | |
226 | 236 | | |
| |||
258 | 268 | | |
259 | 269 | | |
260 | 270 | | |
261 | | - | |
262 | 271 | | |
263 | 272 | | |
264 | 273 | | |
| 274 | + | |
265 | 275 | | |
266 | | - | |
| 276 | + | |
267 | 277 | | |
268 | 278 | | |
| 279 | + | |
| 280 | + | |
269 | 281 | | |
270 | 282 | | |
271 | 283 | | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
| 284 | + | |
276 | 285 | | |
277 | | - | |
278 | | - | |
| 286 | + | |
| 287 | + | |
279 | 288 | | |
280 | 289 | | |
281 | 290 | | |
282 | 291 | | |
283 | | - | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
284 | 296 | | |
285 | 297 | | |
286 | 298 | | |
| |||
472 | 484 | | |
473 | 485 | | |
474 | 486 | | |
475 | | - | |
| 487 | + | |
476 | 488 | | |
477 | 489 | | |
478 | 490 | | |
| |||
500 | 512 | | |
501 | 513 | | |
502 | 514 | | |
| 515 | + | |
503 | 516 | | |
504 | 517 | | |
505 | 518 | | |
| |||
516 | 529 | | |
517 | 530 | | |
518 | 531 | | |
519 | | - | |
| 532 | + | |
520 | 533 | | |
521 | 534 | | |
522 | 535 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
| 171 | + | |
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| |||
608 | 608 | | |
609 | 609 | | |
610 | 610 | | |
611 | | - | |
| 611 | + | |
612 | 612 | | |
613 | 613 | | |
614 | 614 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
440 | 440 | | |
441 | 441 | | |
442 | 442 | | |
| 443 | + | |
443 | 444 | | |
444 | 445 | | |
445 | 446 | | |
446 | 447 | | |
447 | 448 | | |
448 | 449 | | |
449 | 450 | | |
| 451 | + | |
450 | 452 | | |
451 | 453 | | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
| 454 | + | |
456 | 455 | | |
457 | 456 | | |
458 | 457 | | |
| |||
480 | 479 | | |
481 | 480 | | |
482 | 481 | | |
483 | | - | |
| 482 | + | |
484 | 483 | | |
485 | | - | |
| 484 | + | |
486 | 485 | | |
487 | 486 | | |
488 | 487 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| |||
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
91 | | - | |
92 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
93 | 95 | | |
94 | 96 | | |
95 | 97 | | |
96 | | - | |
| 98 | + | |
97 | 99 | | |
98 | 100 | | |
99 | 101 | | |
| |||
149 | 151 | | |
150 | 152 | | |
151 | 153 | | |
152 | | - | |
| 154 | + | |
| 155 | + | |
153 | 156 | | |
154 | 157 | | |
155 | 158 | | |
| |||
214 | 217 | | |
215 | 218 | | |
216 | 219 | | |
| 220 | + | |
217 | 221 | | |
218 | 222 | | |
219 | 223 | | |
| |||
229 | 233 | | |
230 | 234 | | |
231 | 235 | | |
232 | | - | |
233 | | - | |
| 236 | + | |
| 237 | + | |
234 | 238 | | |
235 | 239 | | |
236 | 240 | | |
237 | 241 | | |
238 | 242 | | |
239 | 243 | | |
240 | | - | |
| 244 | + | |
241 | 245 | | |
242 | 246 | | |
243 | 247 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
48 | 50 | | |
49 | 51 | | |
50 | 52 | | |
| |||
61 | 63 | | |
62 | 64 | | |
63 | 65 | | |
64 | | - | |
| 66 | + | |
| 67 | + | |
65 | 68 | | |
66 | 69 | | |
67 | 70 | | |
| |||
87 | 90 | | |
88 | 91 | | |
89 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
90 | 97 | | |
91 | 98 | | |
92 | 99 | | |
| |||
141 | 148 | | |
142 | 149 | | |
143 | 150 | | |
144 | | - | |
145 | | - | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
146 | 156 | | |
147 | 157 | | |
148 | 158 | | |
| |||
160 | 170 | | |
161 | 171 | | |
162 | 172 | | |
163 | | - | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
164 | 177 | | |
165 | 178 | | |
166 | 179 | | |
| |||
176 | 189 | | |
177 | 190 | | |
178 | 191 | | |
179 | | - | |
180 | | - | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
181 | 197 | | |
182 | 198 | | |
183 | 199 | | |
| |||
264 | 280 | | |
265 | 281 | | |
266 | 282 | | |
267 | | - | |
| 283 | + | |
268 | 284 | | |
269 | 285 | | |
270 | 286 | | |
271 | 287 | | |
272 | 288 | | |
273 | 289 | | |
274 | | - | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
275 | 294 | | |
276 | 295 | | |
277 | 296 | | |
278 | 297 | | |
279 | 298 | | |
280 | 299 | | |
281 | | - | |
| 300 | + | |
282 | 301 | | |
283 | 302 | | |
284 | 303 | | |
| |||
304 | 323 | | |
305 | 324 | | |
306 | 325 | | |
307 | | - | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
308 | 330 | | |
309 | 331 | | |
310 | 332 | | |
311 | 333 | | |
312 | 334 | | |
313 | | - | |
| 335 | + | |
314 | 336 | | |
315 | 337 | | |
316 | 338 | | |
| |||
333 | 355 | | |
334 | 356 | | |
335 | 357 | | |
336 | | - | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
337 | 362 | | |
338 | 363 | | |
339 | 364 | | |
| |||
403 | 428 | | |
404 | 429 | | |
405 | 430 | | |
406 | | - | |
| 431 | + | |
407 | 432 | | |
408 | 433 | | |
409 | 434 | | |
410 | 435 | | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
411 | 443 | | |
412 | 444 | | |
413 | 445 | | |
414 | 446 | | |
415 | 447 | | |
416 | 448 | | |
417 | | - | |
| 449 | + | |
| 450 | + | |
418 | 451 | | |
419 | 452 | | |
420 | 453 | | |
| |||
0 commit comments