Skip to content

Commit 35ae45e

Browse files
committed
rebase, small fix to pvsystems.py
1 parent 5ce24ca commit 35ae45e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pvlib/pvsystem.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2648,9 +2648,9 @@ def adrinverter(v_dc, p_dc, inverter, vtol=0.10):
26482648
mppt_hi = inverter['MPPTHi']
26492649
mppt_low = inverter['MPPTLow']
26502650

2651-
v_lim_upper = np.nanmax([v_max, vdc_max, mppt_hi]) * (1 + vtol)
2652-
v_lim_lower = np.nanmax([v_min, mppt_low]) * (1 - vtol)
2653-
2651+
v_lim_upper = float(np.nanmax([v_max, vdc_max, mppt_hi]) * (1 + vtol))
2652+
v_lim_lower = float(np.nanmax([v_min, mppt_low]) * (1 - vtol))
2653+
26542654
pdc = p_dc / p_nom
26552655
vdc = v_dc / v_nom
26562656
# zero voltage will lead to division by zero, but since power is

0 commit comments

Comments
 (0)