Skip to content
Draft
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
2a50a63
Add iam_pchip function and callable model for marion_diffuse
markcampanelli May 12, 2024
398a8ff
Tidy up
markcampanelli May 12, 2024
ed79db8
Appease flake8
markcampanelli May 12, 2024
d596e28
Pin flake8 to match github workflow
markcampanelli May 12, 2024
3e3f0d6
Tidy up more
markcampanelli May 12, 2024
f63a018
Improve test
markcampanelli May 12, 2024
bc519be
Only use pchip in tests
markcampanelli May 15, 2024
d97d077
flake8 ftw
markcampanelli May 15, 2024
c4c18d7
flake8 more ftw
markcampanelli May 15, 2024
8727b04
Remove unused lines in test
markcampanelli May 15, 2024
e726eed
Merge branch 'markcampanelli/main' into marion_diffuse_dep_inj
markcampanelli Jun 30, 2024
6322523
Update builtin models and models' parameters maps
markcampanelli Jun 30, 2024
fe7833b
Appease flake8
markcampanelli Jun 30, 2024
5d218d5
Appease flake8 more
markcampanelli Jun 30, 2024
bcc8429
Undo function moves
markcampanelli Jun 30, 2024
deb466e
Revert to better exception message
markcampanelli Jun 30, 2024
05319f3
Make iam_model required for ModelChain
markcampanelli Jul 1, 2024
dd8408f
Restore infer_aoi_model
markcampanelli Jul 1, 2024
1bd8f0d
Revert additional changes
markcampanelli Jul 1, 2024
0aff7c7
Address failing test and minimize diff
markcampanelli Jul 1, 2024
567374f
Get ModelChain codecov
markcampanelli Jul 1, 2024
e41621a
Add/improve test coverage
markcampanelli Jul 1, 2024
6a0d14d
Add docstring and cover bad model name
markcampanelli Jul 1, 2024
a580ec6
Appease flake8
markcampanelli Jul 1, 2024
2bb3fb6
Cover required params check
markcampanelli Jul 1, 2024
b6fe2bf
Minimize unrelated diff
markcampanelli Jul 1, 2024
2c0d11b
Test get_builtin_models
markcampanelli Jul 1, 2024
083c3c9
Improve comment
markcampanelli Jul 1, 2024
ce7577c
Remove spurious function
markcampanelli Jul 1, 2024
d49ee79
Merge branch 'main' into marion_diffuse_dep_inj
markcampanelli Dec 21, 2024
a037bae
Update modelchain docstrings
markcampanelli Dec 21, 2024
ec3790b
Make sapm iam function use common interface
markcampanelli Dec 21, 2024
0b4a91d
Appease flake8
markcampanelli Dec 21, 2024
c64e6b9
Harmonize IAM and spectral correction and update IAM inference
markcampanelli Dec 22, 2024
08ae199
Appease the linter
markcampanelli Dec 22, 2024
6e8421c
Fix spectral correction example
markcampanelli Dec 22, 2024
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
Prev Previous commit
Next Next commit
Update modelchain docstrings
  • Loading branch information
markcampanelli committed Dec 21, 2024
commit a037bae730a91eeb16fa4ecb9641a19bfc9e6e9e
38 changes: 18 additions & 20 deletions pvlib/modelchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,12 +289,12 @@ class ModelChain:
Parameters
----------
system : PVSystem
A :py:class:`~pvlib.pvsystem.PVSystem` object that represents
the connected set of modules, inverters, etc.
A :py:class:`~pvlib.pvsystem.PVSystem` object that represents the
connected set of modules, inverters, etc.

location : Location
A :py:class:`~pvlib.location.Location` object that represents
the physical location at which to evaluate the model.
A :py:class:`~pvlib.location.Location` object that represents the
physical location at which to evaluate the model.

clearsky_model : str, default 'ineichen'
Passed to location.get_clearsky. Only used when DNI is not found in
Expand All @@ -311,31 +311,29 @@ class ModelChain:

dc_model : str, or function, optional
If not specified, the model will be inferred from the parameters that
are common to all of system.arrays[i].module_parameters.
Valid strings are 'sapm', 'desoto', 'cec', 'pvsyst', 'pvwatts'.
The ModelChain instance will be passed as the first argument
to a user-defined function.
are common to all of system.arrays[i].module_parameters. Valid strings
are 'sapm', 'desoto', 'cec', 'pvsyst', 'pvwatts'. The ModelChain
instance will be passed as the first argument to a user-defined
function.

ac_model : str, or function, optional
If not specified, the model will be inferred from the parameters that
are common to all of system.inverter_parameters.
Valid strings are 'sandia', 'adr', 'pvwatts'. The
ModelChain instance will be passed as the first argument to a
user-defined function.
are common to all of system.inverter_parameters. Valid strings are
'sandia', 'adr', 'pvwatts'. The ModelChain instance will be passed as
the first argument to a user-defined function.

aoi_model : str, or function, optional
If not specified, the model will be inferred from the parameters that
are common to all of system.arrays[i].module_parameters.
Valid strings are 'ashrae', 'interp', 'martin_ruiz', 'physical',
'sapm', 'schlick', 'no_loss'. The ModelChain instance will be passed
as the first argument to a user-defined function.
are common to all of system.arrays[i].module_parameters. Valid strings
are 'ashrae', 'interp', 'martin_ruiz', 'physical', 'sapm', 'schlick',
'no_loss'. The ModelChain instance will be passed as the first
argument to a user-defined function.

spectral_model : str, or function, optional
If not specified, the model will be inferred from the parameters that
are common to all of system.arrays[i].module_parameters.
Valid strings are 'sapm', 'first_solar', 'no_loss'.
The ModelChain instance will be passed as the first argument to
a user-defined function.
are common to all of system.arrays[i].module_parameters. Valid strings
are 'sapm', 'first_solar', 'no_loss'. The ModelChain instance will be
passed as the first argument to a user-defined function.

temperature_model : str or function, optional
Valid strings are: 'sapm', 'pvsyst', 'faiman', 'fuentes', 'noct_sam'.
Expand Down
Loading