Skip to content
18 changes: 9 additions & 9 deletions pvlib/modelchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -1128,15 +1128,15 @@ def infer_temperature_model(self):
elif {'noct', 'module_efficiency'} <= params:
return self.noct_sam_temp
else:
raise ValueError(f'could not infer temperature model from '
f'ModelChain.system. '
f'If Arrays are used to construct the PVSystem, '
f'check that all Arrays in '
f'ModelChain.system.arrays '
f'have parameers for the same temperature model. '
f'If Arrays are not used, check that the PVSystem '
f'attributes `racking_model` and `module_type` '
f'are valid.')
raise ValueError('could not infer temperature model from '
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
raise ValueError('could not infer temperature model from '
raise ValueError('Could not infer temperature model from '

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@matsuobasho this capitalization change will also require the tests to be updated. See the test failures here: https://github.com/pvlib/pvlib-python/actions/runs/8146219415/job/22264244062?pr=1977#step:9:134

'ModelChain.system. '
'If Arrays are used to construct the PVSystem, '
'check that all Arrays in '
'ModelChain.system.arrays '
'have parameers for the same temperature model. '
'If Arrays are not used, check that the PVSystem '
'attributes `racking_model` and `module_type` '
'are valid.')

def _set_celltemp(self, model):
"""Set self.results.cell_temperature using the given cell
Expand Down