-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add Array.get_cell_temperature, PVSystem.get_cell_temperature #1211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
6b69027
6b7dcff
df1e712
3b850b0
42691d1
e44cc26
e744b04
ec7b5fe
4c03c93
97e400d
0a2fad5
2c0cd00
cb85661
f01b9c1
7748074
4f03b08
7668b38
e5c43cc
0e59b30
d538037
b97c045
bb08d62
f50c7fe
98c6776
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -992,12 +992,10 @@ def _set_celltemp(self, model): | |
|
||
Parameters | ||
---------- | ||
model : function | ||
A function that takes POA irradiance, air temperature, and | ||
wind speed and returns cell temperature. `model` must accept | ||
tuples or single values for each parameter where each element of | ||
the tuple is the value for a different array in the system | ||
(see :py:class:`pvlib.pvsystem.PVSystem` for more information). | ||
model : str | ||
A cell temperature model name to pass to | ||
:py:meth:`pvlib.pvsystem.PVSystem.get_cell_temperature`. | ||
kandersolar marked this conversation as resolved.
Show resolved
Hide resolved
|
||
Valid names are 'sapm', 'pvsyst', 'faiman', 'fuentes', 'noct_sam' | ||
|
||
Returns | ||
------- | ||
|
@@ -1009,26 +1007,26 @@ def _set_celltemp(self, model): | |
temp_air = _tuple_from_dfs(self.results.weather, 'temp_air') | ||
wind_speed = _tuple_from_dfs(self.results.weather, 'wind_speed') | ||
kwargs = {} | ||
if model == self.system.noct_sam_celltemp: | ||
if model == 'noct_sam': | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The docstring says that With this change, is There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I think this question remains, but it should be explored in a separate issue. |
||
kwargs['effective_irradiance'] = self.results.effective_irradiance | ||
self.results.cell_temperature = model(poa, temp_air, wind_speed, | ||
**kwargs) | ||
self.results.cell_temperature = self.system.get_cell_temperature( | ||
poa, temp_air, wind_speed, model=model, **kwargs) | ||
return self | ||
|
||
def sapm_temp(self): | ||
return self._set_celltemp(self.system.sapm_celltemp) | ||
return self._set_celltemp('sapm') | ||
|
||
def pvsyst_temp(self): | ||
return self._set_celltemp(self.system.pvsyst_celltemp) | ||
return self._set_celltemp('pvsyst') | ||
|
||
def faiman_temp(self): | ||
return self._set_celltemp(self.system.faiman_celltemp) | ||
return self._set_celltemp('faiman') | ||
|
||
def fuentes_temp(self): | ||
return self._set_celltemp(self.system.fuentes_celltemp) | ||
return self._set_celltemp('fuentes') | ||
|
||
def noct_sam_temp(self): | ||
return self._set_celltemp(self.system.noct_sam_celltemp) | ||
return self._set_celltemp('noct_sam') | ||
|
||
@property | ||
def dc_ohmic_model(self): | ||
|
Uh oh!
There was an error while loading. Please reload this page.