Skip to content

Commit e340950

Browse files
committed
Fix pvwatts doctest parameters in examples
1 parent 198dab7 commit e340950

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

pvlib/modelchain.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1724,8 +1724,8 @@ def run_model_from_poa(self, data):
17241724
>>> location = Location(35, -110)
17251725
>>> mount = FixedMount(surface_tilt=30, surface_azimuth=180)
17261726
>>> array = Array(mount=mount, module_parameters={'pdc0': 300, 'gamma_pdc': -0.004})
1727-
>>> system = PVSystem(arrays=[array])
1728-
>>> mc = ModelChain(system, location,dc_model="pvwatts")
1727+
>>> system = PVSystem(arrays=[array],inverter_parameters={'pdc0': 300})
1728+
>>> mc = ModelChain(system, location,dc_model="pvwatts",ac_model="pvwatts")
17291729
>>> poa = pd.DataFrame({
17301730
... 'poa_global': [900, 850],
17311731
... 'poa_direct': [600, 560],
@@ -1742,8 +1742,8 @@ def run_model_from_poa(self, data):
17421742
>>> mount2 = FixedMount(surface_tilt=10, surface_azimuth=90)
17431743
>>> array1 = Array(mount=mount1, module_parameters={'pdc0': 300, 'gamma_pdc': -0.004})
17441744
>>> array2 = Array(mount=mount2, module_parameters={'pdc0': 300, 'gamma_pdc': -0.004})
1745-
>>> system = PVSystem(arrays=[array1, array2])
1746-
>>> mc = ModelChain(system, location,dc_model="pvwatts")
1745+
>>> system = PVSystem(arrays=[array1, array2],inverter_parameters={'pdc0': 300})
1746+
>>> mc = ModelChain(system, location,dc_model="pvwatts",ac_model="pvwatts")
17471747
>>> poa1 = pd.DataFrame({
17481748
... 'poa_global': [900, 880],
17491749
... 'poa_direct': [600, 580],
@@ -1854,8 +1854,8 @@ def run_model_from_effective_irradiance(self, data):
18541854
>>> location = Location(35, -110)
18551855
>>> mount = FixedMount(surface_tilt=30, surface_azimuth=180)
18561856
>>> array = Array(mount=mount,module_parameters={'pdc0': 300, 'gamma_pdc': -0.004})
1857-
>>> system = PVSystem(arrays=[array])
1858-
>>> mc = ModelChain(system, location,dc_model="pvwatts")
1857+
>>> system = PVSystem(arrays=[array],inverter_parameters={'pdc0': 300})
1858+
>>> mc = ModelChain(system, location,dc_model="pvwatts",ac_model="pvwatts")
18591859
>>>
18601860
>>> eff = pd.DataFrame({
18611861
... 'effective_irradiance': [900, 920],
@@ -1873,8 +1873,8 @@ def run_model_from_effective_irradiance(self, data):
18731873
>>> mount2 = FixedMount(surface_tilt=10, surface_azimuth=90)
18741874
>>> array1 = Array(mount=mount1, module_parameters={'pdc0': 300, 'gamma_pdc': -0.004})
18751875
>>> array2 = Array(mount=mount2, module_parameters={'pdc0': 300, 'gamma_pdc': -0.004})
1876-
>>> system = PVSystem(arrays=[array1, array2])
1877-
>>> mc = ModelChain(system, location,dc_model="pvwatts")
1876+
>>> system = PVSystem(arrays=[array1, array2],inverter_parameters={'pdc0': 300})
1877+
>>> mc = ModelChain(system, location,dc_model="pvwatts",ac_model="pvwatts")
18781878
>>> eff1 = pd.DataFrame({
18791879
... 'effective_irradiance': [900, 920],
18801880
... 'temp_air': [25, 24],

0 commit comments

Comments
 (0)