Skip to content

Commit d09c896

Browse files
committed
Fix ModelChain docstring examples for pvwatts
1 parent 2546993 commit d09c896

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

pvlib/modelchain.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1723,7 +1723,7 @@ def run_model_from_poa(self, data):
17231723
>>> from pvlib.modelchain import ModelChain
17241724
>>> location = Location(35, -110)
17251725
>>> mount = FixedMount(surface_tilt=30, surface_azimuth=180)
1726-
>>> array = Array(mount=mount, module_parameters={'pdc0': 300, 'gamma_pdc': -0.004})
1726+
>>> array = Array(mount=mount, module_parameters={'pdc0': 300, 'gamma_pdc': -0.004},temperature_model_parameters={'u0': 25.0, 'u1': 6.84})
17271727
>>> system = PVSystem(arrays=[array],inverter_parameters={'pdc0': 300})
17281728
>>> mc = ModelChain(system, location,dc_model="pvwatts",ac_model="pvwatts", aoi_model="no_loss", spectral_model="no_loss", temperature_model="faiman")
17291729
>>> poa = pd.DataFrame({
@@ -1740,8 +1740,8 @@ def run_model_from_poa(self, data):
17401740
17411741
>>> mount1 = FixedMount(surface_tilt=30, surface_azimuth=180)
17421742
>>> mount2 = FixedMount(surface_tilt=10, surface_azimuth=90)
1743-
>>> array1 = Array(mount=mount1, module_parameters={'pdc0': 300, 'gamma_pdc': -0.004})
1744-
>>> array2 = Array(mount=mount2, module_parameters={'pdc0': 300, 'gamma_pdc': -0.004})
1743+
>>> array1 = Array(mount=mount1, module_parameters={'pdc0': 300, 'gamma_pdc': -0.004}, temperature_model_parameters={'u0': 25.0, 'u1': 6.84})
1744+
>>> array2 = Array(mount=mount2, module_parameters={'pdc0': 300, 'gamma_pdc': -0.004}, temperature_model_parameters={'u0': 25.0, 'u1': 6.84})
17451745
>>> system = PVSystem(arrays=[array1, array2],inverter_parameters={'pdc0': 300})
17461746
>>> mc = ModelChain(system, location,dc_model="pvwatts",ac_model="pvwatts", aoi_model="no_loss", spectral_model="no_loss", temperature_model="faiman")
17471747
>>> poa1 = pd.DataFrame({
@@ -1853,7 +1853,7 @@ def run_model_from_effective_irradiance(self, data):
18531853
>>> from pvlib.modelchain import ModelChain
18541854
>>> location = Location(35, -110)
18551855
>>> mount = FixedMount(surface_tilt=30, surface_azimuth=180)
1856-
>>> array = Array(mount=mount,module_parameters={'pdc0': 300, 'gamma_pdc': -0.004})
1856+
>>> array = Array(mount=mount,module_parameters={'pdc0': 300, 'gamma_pdc': -0.004}, temperature_model_parameters={'u0': 25.0, 'u1': 6.84})
18571857
>>> system = PVSystem(arrays=[array],inverter_parameters={'pdc0': 300})
18581858
>>> mc = ModelChain(system, location,dc_model="pvwatts",ac_model="pvwatts", aoi_model="no_loss", spectral_model="no_loss", temperature_model="faiman")
18591859
>>>
@@ -1871,8 +1871,8 @@ def run_model_from_effective_irradiance(self, data):
18711871
18721872
>>> mount1 = FixedMount(surface_tilt=30, surface_azimuth=180)
18731873
>>> mount2 = FixedMount(surface_tilt=10, surface_azimuth=90)
1874-
>>> array1 = Array(mount=mount1, module_parameters={'pdc0': 300, 'gamma_pdc': -0.004})
1875-
>>> array2 = Array(mount=mount2, module_parameters={'pdc0': 300, 'gamma_pdc': -0.004})
1874+
>>> array1 = Array(mount=mount1, module_parameters={'pdc0': 300, 'gamma_pdc': -0.004}, temperature_model_parameters={'u0': 25.0, 'u1': 6.84})
1875+
>>> array2 = Array(mount=mount2, module_parameters={'pdc0': 300, 'gamma_pdc': -0.004}, temperature_model_parameters={'u0': 25.0, 'u1': 6.84})
18761876
>>> system = PVSystem(arrays=[array1, array2],inverter_parameters={'pdc0': 300})
18771877
>>> mc = ModelChain(system, location,dc_model="pvwatts",ac_model="pvwatts", aoi_model="no_loss", spectral_model="no_loss",temperature_model="faiman")
18781878
>>> eff1 = pd.DataFrame({

0 commit comments

Comments
 (0)