|
8 | 8 |
|
9 | 9 | from functools import partial |
10 | 10 | import warnings |
| 11 | +import pandas as pd |
11 | 12 |
|
12 | 13 | from pvlib import (atmosphere, clearsky, pvsystem, solarposition, temperature, |
13 | 14 | tools) |
@@ -453,9 +454,11 @@ def _singlediode(self, calcparams_model_function): |
453 | 454 | calcparams_model_function(self.effective_irradiance, |
454 | 455 | self.cell_temperature)) |
455 | 456 |
|
456 | | - self.diode_params = (photocurrent, saturation_current, |
457 | | - resistance_series, |
458 | | - resistance_shunt, nNsVth) |
| 457 | + self.diode_params = pd.DataFrame({'I_L': photocurrent, |
| 458 | + 'I_o': saturation_current, |
| 459 | + 'R_s': resistance_series, |
| 460 | + 'R_sh': resistance_shunt, |
| 461 | + 'nNsVth': nNsVth}) |
459 | 462 |
|
460 | 463 | self.dc = self.system.singlediode( |
461 | 464 | photocurrent, saturation_current, resistance_series, |
@@ -924,9 +927,11 @@ def run_model(self, weather, times=None): |
924 | 927 | ------- |
925 | 928 | self |
926 | 929 |
|
927 | | - Assigns attributes: solar_position, airmass, irradiance, |
928 | | - total_irrad, effective_irradiance, weather, cell_temperature, aoi, |
929 | | - aoi_modifier, spectral_modifier, dc, ac, losses. |
| 930 | + Assigns attributes: ``solar_position``, ``airmass``, ``irradiance``, |
| 931 | + ``total_irrad``, ``effective_irradiance``, ``weather``, |
| 932 | + ``cell_temperature``, ``aoi``, ``aoi_modifier``, ``spectral_modifier``, |
| 933 | + ``dc``, ``ac``, ``losses``, |
| 934 | + ``diode_params`` (if dc_model is a single diode model) |
930 | 935 | """ |
931 | 936 | if times is not None: |
932 | 937 | warnings.warn('times keyword argument is deprecated and will be ' |
|
0 commit comments