Skip to content

Commit 7661b05

Browse files
authored
Revise modelchain.rst for multiple arrays, results attribute (#1223)
* revise for new run_model methods, .results attribute, multiple arrays * fix typos, use bullets instead of table * improvements, add with_ class methods * fix mistake * fix another mistake * fix cross reference * updates from review * more use of formatting * fix link * refix link * clear up deprecations * a few more, print inverter model inference helpers * correct references * revisions from review * fix up loop in pvusa_mc_wrapper * indents * correct references * thrash some more * suppress long output * add comments to user function example * add : * spacing * move comments to docstring so they appear in rtd * improvements from review * last edits * spelling * remove unneeded unwrap in example function
1 parent 0415365 commit 7661b05

File tree

3 files changed

+237
-112
lines changed

3 files changed

+237
-112
lines changed

docs/sphinx/source/api.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,8 @@ Creating a ModelChain object.
572572
modelchain.ModelChain.with_pvwatts
573573
modelchain.ModelChain.with_sapm
574574

575+
.. _modelchain_runmodel:
576+
575577
Running
576578
-------
577579

docs/sphinx/source/introtutorial.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,8 @@ by examining the parameters defined for the module.
209209
)
210210
211211
mc = ModelChain(system, location)
212-
results = mc.run_model(weather)
213-
annual_energy = results.ac.sum()
212+
mc.run_model(weather)
213+
annual_energy = mc.results.ac.sum()
214214
energies[name] = annual_energy
215215
216216
energies = pd.Series(energies)

0 commit comments

Comments
 (0)