-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Docstring for ModelChainResult #1233
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
Changes from 6 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
9390846
see how this docstring works
cwhanse b2d29c2
one long sentence
cwhanse a04015c
progress
cwhanse cc241ce
Merge branch 'master' of https://github.com/pvlib/pvlib-python into m…
cwhanse d030f80
complete draft
cwhanse bebe6c2
adjustments
cwhanse 76633b1
correct use of tuple
cwhanse 745dc66
correct func and method references
cwhanse 63a33c2
move _PerArray to module scope
cwhanse 3cb2c9c
add dataclass docstring
cwhanse 9c3a69a
try _typehints
cwhanse ca6a10f
remove _typehints
cwhanse 6b006ea
remove class docstring, add a few See Also to pvsystem
cwhanse 004fda4
make public
cwhanse fbd5ee9
Merge branch 'master' of https://github.com/pvlib/pvlib-python into m…
cwhanse File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -260,27 +260,99 @@ class ModelChainResult: | |
|
||
# system-level information | ||
solar_position: Optional[pd.DataFrame] = field(default=None) | ||
"""Solar position in a DataFrame containing columns ``'apparent_zenith'``, | ||
``'zenith'``, ``'apparent_elevation'``, ``'elevation'``, ``'azimuth'`` | ||
(all in degrees), with possibly other columns depending on the solar | ||
position method; see :py:meth:`~pvlib.solarposition.get_solarposition` | ||
for details.""" | ||
|
||
airmass: Optional[pd.DataFrame] = field(default=None) | ||
"""Air mass in a DataFrame containing columns ``'airmass_relative'``, | ||
``'airmass_absolute'`` (unitless); see | ||
:py:meth:`~pvlib.location.get_airmass` for details.""" | ||
|
||
ac: Optional[pd.Series] = field(default=None) | ||
"""AC power from the PV system, in a Series [W]""" | ||
|
||
tracking: Optional[pd.DataFrame] = field(default=None) | ||
"""Orientation of modules on a single axis tracker, in a DataFrame with | ||
columns ``'surface_tilt'``, ``'surface_azimuth'``, ``'aoi'``; see | ||
:py:func:`~pvlib.tracking.singleaxis` for detals. | ||
""" | ||
|
||
# per DC array information | ||
total_irrad: Optional[PerArray[pd.DataFrame]] = field(default=None) | ||
""" DataFrame (or tuple of DataFrame, one for each array) containing | ||
columns ``'poa_global'``, ``'poa_direct'`` ``'poa_diffuse'``, | ||
``poa_sky_diffuse'``, ``'poa_ground_diffuse'`` (W/m2); see | ||
:py:func:`~pvlib.irradiance.get_total_irradiance` for details. | ||
""" | ||
|
||
aoi: Optional[PerArray[pd.Series]] = field(default=None) | ||
""" | ||
Series (or tuple of Series, one for each array) containing angle of | ||
incidence (degrees); see :py:func:`~pvlib.irradiance.aoi` for details. | ||
""" | ||
|
||
aoi_modifier: Optional[PerArray[Union[pd.Series, float]]] = \ | ||
field(default=None) | ||
"""Series (or tuple of Series, one for each array) containing angle of | ||
incidence modifier (unitless) calculated by ``ModelChain.aoi_model``, | ||
which reduces direct irradiance for reflections; | ||
see :py:meth:`~pvlib.pvsystem.PVSystem.get_iam` for details. | ||
""" | ||
|
||
spectral_modifier: Optional[PerArray[Union[pd.Series, float]]] = \ | ||
field(default=None) | ||
"""Series (or tuple of Series, one for each array) containing spectral | ||
modifier (unitless) calculated by ``ModelChain.spectral_model``, which | ||
adjusts broadband plane-of-array irradiance for spectral content. | ||
""" | ||
|
||
cell_temperature: Optional[PerArray[pd.Series]] = field(default=None) | ||
"""Series (or tuple of Series, one for each array) containing cell | ||
temperature (C). | ||
""" | ||
|
||
effective_irradiance: Optional[PerArray[pd.Series]] = field(default=None) | ||
"""Series (or tuple of Series, one for each array) containing effective | ||
irradiance (W/m2) which is total plane-of-array irradiance adjusted for | ||
reflections and spectral content. | ||
""" | ||
|
||
dc: Optional[PerArray[Union[pd.Series, pd.DataFrame]]] = \ | ||
field(default=None) | ||
"""Series or DataFrame (or tuple of Series or DataFrame, one for | ||
each array) containing DC power (W) for each array, calculated by | ||
``ModelChain.dc_model``. | ||
""" | ||
|
||
diode_params: Optional[PerArray[pd.DataFrame]] = field(default=None) | ||
"""DataFrame (or tuple of DataFrame, one for each array) containing diode | ||
equation parameters (columns ``'I_L'``, ``'I_o'``, ``'R_s'``, ``'R_sh'``, | ||
``'nNsVth'``, present when ModelChain.dc_model is a single diode model; | ||
see :py:func:`~pvlib.pvsystem.singlediode` for details. | ||
""" | ||
|
||
dc_ohmic_losses: Optional[PerArray[pd.Series]] = field(default=None) | ||
"""Series (or tuple of Series, one for each array) containing DC ohmic | ||
loss (W) calculated by ``ModelChain.dc_ohmic_model``. | ||
""" | ||
|
||
losses: Optional[Union[pd.Series, float]] = field(default=None) | ||
"""Series (or tuple of Series, one for each array) containing DC loss | ||
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. never a tuple |
||
as a fraction of DC power, as calculated by ``ModelChain.losses_model``. | ||
""" | ||
|
||
weather: Optional[PerArray[pd.DataFrame]] = None | ||
"""DataFrame (or tuple of DataFrame, one for each array) contains a | ||
copy of the input weather data. | ||
""" | ||
|
||
times: Optional[pd.DatetimeIndex] = None | ||
"""DatetimeIndex (or tuple of DatetimeIndex, one for each array) contains | ||
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. never a tuple |
||
a copy of the index of the input weather data. | ||
""" | ||
|
||
def _result_type(self, value): | ||
"""Coerce `value` to the correct type according to | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.