Skip to content

Commit 4148c53

Browse files
committed
Change OrderedDict to dict
1 parent 1c459d3 commit 4148c53

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

pvlib/irradiance.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -627,15 +627,15 @@ def isotropic(surface_tilt, dhi, return_components=False):
627627
628628
Returns
629629
-------
630-
numeric, OrderedDict, or DataFrame
630+
numeric, Dict, or DataFrame
631631
Return type controlled by ``return_components`` argument.
632632
If `False`, ``sky_diffuse`` is returned.
633633
If `True`, ``diffuse_components`` is returned.
634634
635635
sky_diffuse : numeric
636636
The sky diffuse component of the solar radiation. [Wm⁻²]
637637
638-
diffuse_components : OrderedDict (array input) or DataFrame (Series input)
638+
diffuse_components : Dict (array input) or DataFrame (Series input)
639639
Keys/columns are:
640640
* poa_sky_diffuse: Total sky diffuse
641641
* poa_isotropic
@@ -655,9 +655,10 @@ def isotropic(surface_tilt, dhi, return_components=False):
655655
sky_diffuse = dhi * (1 + tools.cosd(surface_tilt)) * 0.5
656656

657657
if return_components:
658-
diffuse_components = OrderedDict()
659-
diffuse_components['poa_sky_diffuse'] = sky_diffuse
660-
diffuse_components['poa_isotropic'] = sky_diffuse
658+
diffuse_components = {
659+
'poa_sky_diffuse': sky_diffuse,
660+
'poa_isotropic': sky_diffuse
661+
}
661662

662663
if isinstance(sky_diffuse, pd.Series):
663664
diffuse_components = pd.DataFrame(diffuse_components)

0 commit comments

Comments
 (0)