@@ -216,6 +216,9 @@ class ModelChain(object):
216
216
interface for all of the modeling steps necessary for calculating PV
217
217
power from a time series of weather inputs.
218
218
219
+ See https://pvlib-python.readthedocs.io/en/stable/modelchain.html
220
+ for examples.
221
+
219
222
Parameters
220
223
----------
221
224
system : PVSystem
@@ -411,7 +414,9 @@ def infer_dc_model(self):
411
414
return self .pvwatts_dc , 'pvwatts'
412
415
else :
413
416
raise ValueError ('could not infer DC model from '
414
- 'system.module_parameters' )
417
+ 'system.module_parameters. Check '
418
+ 'system.module_parameters or explicitly '
419
+ 'set the model with the dc_model kwarg.' )
415
420
416
421
def sapm (self ):
417
422
self .dc = self .system .sapm (self .effective_irradiance / 1000. ,
@@ -530,7 +535,9 @@ def infer_ac_model(self):
530
535
return self .pvwatts_inverter
531
536
else :
532
537
raise ValueError ('could not infer AC model from '
533
- 'system.inverter_parameters' )
538
+ 'system.inverter_parameters. Check '
539
+ 'system.inverter_parameters or explicitly '
540
+ 'set the model with the ac_model kwarg.' )
534
541
535
542
def snlinverter (self ):
536
543
self .ac = self .system .snlinverter (self .dc ['v_mp' ], self .dc ['p_mp' ])
@@ -577,7 +584,11 @@ def infer_aoi_model(self):
577
584
return self .ashrae_aoi_loss
578
585
else :
579
586
raise ValueError ('could not infer AOI model from '
580
- 'system.module_parameters' )
587
+ 'system.module_parameters. Check that the '
588
+ 'system.module_parameters contain parameters for '
589
+ 'the physical, aoi, or ashrae model; explicitly '
590
+ 'set model with aoi_model kwarg; or set '
591
+ 'aoi_model="no_loss".' )
581
592
582
593
def ashrae_aoi_loss (self ):
583
594
self .aoi_modifier = self .system .ashraeiam (self .aoi )
@@ -628,9 +639,10 @@ def infer_spectral_model(self):
628
639
else :
629
640
raise ValueError ('could not infer spectral model from '
630
641
'system.module_parameters. Check that the '
631
- 'parameters contain valid '
632
- 'first_solar_spectral_coefficients or a valid '
633
- 'Material or Technology value' )
642
+ 'system.module_parameters contain valid '
643
+ 'first_solar_spectral_coefficients, a valid '
644
+ 'Material or Technology value, or set '
645
+ 'spectral_model="no_loss".' )
634
646
635
647
def first_solar_spectral_loss (self ):
636
648
self .spectral_modifier = self .system .first_solar_spectral_loss (
0 commit comments