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