Skip to content

fix i_from_v documentation #128

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

Merged
merged 1 commit into from
Mar 13, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/sphinx/source/whatsnew/v0.3.0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ Bug fixes
* Fixes the import of tkinter on Python 3 (:issue:`112`)
* Add a decorator to skip ``test_calcparams_desoto`` on pandas 0.18.0.
(:issue:`130`)
* Fixes ``i_from_v`` documentation. (:issue:`126`)


Contributors
Expand Down
19 changes: 11 additions & 8 deletions pvlib/pvsystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -1227,7 +1227,7 @@ def sapm_celltemp(poa_global, wind_speed, temp_air,
'insulated_back_polymerback': [-2.81, -.0455, 0],
'open_rack_polymer_thinfilm_steel': [-3.58, -.113, 3],
'22x_concentrator_tracker': [-3.23, -.130, 13]
}
}

if isinstance(model, str):
model = temp_models[model.lower()]
Expand Down Expand Up @@ -1499,17 +1499,13 @@ def i_from_v(resistance_shunt, resistance_series, nNsVth, voltage,

Parameters
----------
resistance_series : float or Series
Series resistance in ohms under desired IV curve conditions.
Often abbreviated ``Rs``.

resistance_shunt : float or Series
Shunt resistance in ohms under desired IV curve conditions.
Often abbreviated ``Rsh``.

saturation_current : float or Series
Diode saturation current in amperes under desired IV curve
conditions. Often abbreviated ``I_0``.
resistance_series : float or Series
Series resistance in ohms under desired IV curve conditions.
Often abbreviated ``Rs``.

nNsVth : float or Series
The product of three components. 1) The usual diode ideal factor
Expand All @@ -1520,6 +1516,13 @@ def i_from_v(resistance_shunt, resistance_series, nNsVth, voltage,
temp_cell is the temperature of the p-n junction in Kelvin, and
q is the charge of an electron (coulombs).

voltage : float or Series
The voltage in Volts under desired IV curve conditions.

saturation_current : float or Series
Diode saturation current in amperes under desired IV curve
conditions. Often abbreviated ``I_0``.

photocurrent : float or Series
Light-generated current (photocurrent) in amperes under desired
IV curve conditions. Often abbreviated ``I_L``.
Expand Down