Skip to content

Commit 4984391

Browse files
committed
Fix doctest outputs for ModelChain run_model examples
1 parent d09c896 commit 4984391

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

pvlib/modelchain.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1733,8 +1733,7 @@ def run_model_from_poa(self, data):
17331733
... },
17341734
... index=pd.date_range("2021-06-01", periods=2, freq="h"))
17351735
>>>
1736-
>>> mc.run_model_from_poa(poa)
1737-
<pvlib.modelchain.ModelChain ...>
1736+
>>> _ = mc.run_model_from_poa(poa)
17381737
17391738
Multi-array system:
17401739
@@ -1756,8 +1755,7 @@ def run_model_from_poa(self, data):
17561755
... 'poa_diffuse': [300, 300],
17571756
... },
17581757
... index=poa1.index)
1759-
>>> mc.run_model_from_poa([poa1, poa2])
1760-
<pvlib.modelchain.ModelChain ...>
1758+
>>> _ = mc.run_model_from_poa([poa1, poa2])
17611759
17621760
Notes
17631761
-----
@@ -1864,8 +1862,7 @@ def run_model_from_effective_irradiance(self, data):
18641862
... },
18651863
... index=pd.date_range("2021-06-01", periods=2, freq="h"))
18661864
>>>
1867-
>>> mc.run_model_from_effective_irradiance(eff)
1868-
<pvlib.modelchain.ModelChain ...>
1865+
>>> _ = mc.run_model_from_effective_irradiance(eff)
18691866
18701867
Multi-array system:
18711868
@@ -1887,8 +1884,8 @@ def run_model_from_effective_irradiance(self, data):
18871884
... 'wind_speed': [1.8, 1.2],
18881885
... },
18891886
... index=eff1.index)
1890-
>>> mc.run_model_from_effective_irradiance([eff1, eff2])
1891-
<pvlib.modelchain.ModelChain ...>
1887+
>>> _ = mc.run_model_from_effective_irradiance([eff1, eff2])
1888+
18921889
18931890
Notes
18941891
-----

0 commit comments

Comments
 (0)