We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c70802 commit 6121759Copy full SHA for 6121759
pvlib/modelchain.py
@@ -876,7 +876,7 @@ def spectral_model(self, model):
876
else:
877
self._spectral_model = partial(model, self)
878
879
- def infer_spectral_model(self): # TODO: support other spectral models?
+ def infer_spectral_model(self):
880
"""Infer spectral model from system attributes."""
881
module_parameters = tuple(
882
array.module_parameters for array in self.system.arrays)
@@ -913,7 +913,6 @@ def infer_spectral_model(self): # TODO: support other spectral models?
913
)
914
return self.no_spectral_loss
915
916
- # TODO: list valid models in message down below
917
raise ValueError(
918
"could not infer spectral model from "
919
"system.arrays[i].module_parameters. Check that "
0 commit comments