Skip to content

Commit 73aed6a

Browse files
committed
grounddiffuse to get_ground_diffuse
1 parent a8eb819 commit 73aed6a

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ API Changes
1111
* Added irradiance.poa_components. Function is the same as the now-deprecated
1212
irradiance.globalinplane, but adds 'poa_sky_diffuse' and
1313
'poa_ground_diffuse' to the output. (:issue:`422`)
14-
* Deprecated irradiance.extraradiation. Use irradiance.extra_radiation instead.
15-
irradiance.extraradiation will be removed in 0.5. (:issue:`422`)
14+
* Deprecated irradiance.extraradiation. Use irradiance.get_extra_radiation
15+
instead. irradiance.extraradiation will be removed in 0.6. (:issue:`422`)
16+
* Deprecated irradiance.grounddiffuse. Use irradiance.get_ground_diffuse
17+
instead. irradiance.grounddiffuse will be removed in 0.6. (:issue:`422`)
1618

1719
Enhancements
1820
~~~~~~~~~~~~

pvlib/irradiance.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ def globalinplane(aoi, dni, poa_sky_diffuse, poa_ground_diffuse):
567567
return irrads
568568

569569

570-
def grounddiffuse(surface_tilt, ghi, albedo=.25, surface_type=None):
570+
def get_ground_diffuse(surface_tilt, ghi, albedo=.25, surface_type=None):
571571
'''
572572
Estimate diffuse irradiance from ground reflections given
573573
irradiance, albedo, and surface tilt
@@ -634,6 +634,10 @@ def grounddiffuse(surface_tilt, ghi, albedo=.25, surface_type=None):
634634
return diffuse_irrad
635635

636636

637+
grounddiffuse = deprecated('0.5.2', alternative='get_ground_diffuse',
638+
name='grounddiffuse')(get_ground_diffuse)
639+
640+
637641
def isotropic(surface_tilt, dhi):
638642
r'''
639643
Determine diffuse irradiance from the sky on a tilted surface using

0 commit comments

Comments
 (0)