|
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,
|
@@ -926,12 +929,11 @@ def run_model(self, weather, times=None):
|
926 | 929 | -------
|
927 | 930 | self
|
928 | 931 |
|
929 |
| - Notes |
930 |
| - ----- |
931 | 932 | Assigns attributes: ``solar_position``, ``airmass``, ``irradiance``,
|
932 | 933 | ``total_irrad``, ``effective_irradiance``, ``weather``,
|
933 | 934 | ``cell_temperature``, ``aoi``, ``aoi_modifier``, ``spectral_modifier``,
|
934 |
| - ``dc``, ``ac``, ``losses``. |
| 935 | + ``dc``, ``ac``, ``losses``, |
| 936 | + ``diode_params`` (if dc_model is a single diode model) |
935 | 937 | """
|
936 | 938 | if times is not None:
|
937 | 939 | warnings.warn('times keyword argument is deprecated and will be '
|
|
0 commit comments