Skip to content

Commit 0271a3e

Browse files
authored
Run ModelChain from POA irradiance (#943)
* add _from_poa, _from_effective_irradiance methods * indentation, lint * sort out weather, total_irrad, effective_irradiance * fix _prep_inputs_solar_pos * press_temp * reorganize code that assigns weather and total_irrad * add prepare_temperature * start fixing tests * start on tests * split run_model_from_effective_irradiance * fix tests, sticker * more test fixes * another test fix * add test for prepare_temperature * don't replace missing poa_global with effective_irradiance * make _prepare_temperature private * add _assign_weather() to test * method name to sapm_temp * use the correct class * api, whatsnew * docstring improvements, use assert_frame_equal * delete [k] * add issue to whatsnew
1 parent 7fc595a commit 0271a3e

File tree

4 files changed

+432
-49
lines changed

4 files changed

+432
-49
lines changed

docs/sphinx/source/api.rst

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,14 +547,25 @@ Creating a ModelChain object.
547547
Running
548548
-------
549549

550-
Running a ModelChain.
550+
A ModelChain can be run from a number of starting points, depending on the
551+
input data available.
551552

552553
.. autosummary::
553554
:toctree: generated/
554555

555556
modelchain.ModelChain.run_model
557+
modelchain.ModelChain.run_model_from_poa
558+
modelchain.ModelChain.run_model_from_effective_irradiance
559+
560+
Functions to assist with setting up ModelChains to run
561+
562+
.. autosummary::
563+
:toctree: generated/
564+
556565
modelchain.ModelChain.complete_irradiance
557566
modelchain.ModelChain.prepare_inputs
567+
modelchain.ModelChain.prepare_inputs_from_poa
568+
558569

559570
Attributes
560571
----------

docs/sphinx/source/whatsnew/v0.8.0.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,11 @@ Enhancements
105105
* Add :py:func:`pvlib.pvsystem.combine_loss_factors` as general purpose
106106
function to combine loss factors with a common index.
107107
Partialy addresses :issue:`988`. Contributed by Brock Taute :ghuser:`btaute`
108+
* Add capability to run a ModelChain starting with plane-of-array or effective
109+
irradiance, or with back-of-module or cell temperature data. New methods are
110+
:py:meth:`pvlib.modelchain.ModelChain.run_model_from_poa`,
111+
:py:meth:`pvlib.modelchain.ModelChain.run_model_from_effective_irradiance`,
112+
and :py:meth:`pvlib.modelchain.ModelChain.prepare_inputs_from_poa` (:issue:`536`, :pull:`943`)
108113

109114
Bug fixes
110115
~~~~~~~~~

0 commit comments

Comments
 (0)