diff --git a/docs/sphinx/source/whatsnew/v0.16.2.rst b/docs/sphinx/source/whatsnew/v0.16.2.rst index fb3ff54f76..3b57fa6eba 100644 --- a/docs/sphinx/source/whatsnew/v0.16.2.rst +++ b/docs/sphinx/source/whatsnew/v0.16.2.rst @@ -6,7 +6,8 @@ v0.16.2 (Anticipated December, 2026) Breaking Changes ~~~~~~~~~~~~~~~~ - +* ``ModelChain`` no longer fills NaN with 0 in DC power and AC power. + (:issue:`1409`, :pull:`2955`) Deprecations ~~~~~~~~~~~~ diff --git a/pvlib/modelchain.py b/pvlib/modelchain.py index d2112ac25a..f385192db2 100644 --- a/pvlib/modelchain.py +++ b/pvlib/modelchain.py @@ -626,7 +626,7 @@ def _make_diode_params(photocurrent, saturation_current, self.results.dc, unwrap=False ) - self.results.dc = tuple(dc.fillna(0) for dc in self.results.dc) + # self.results.dc = tuple(dc.fillna(0) for dc in self.results.dc) # If the system has one Array, unwrap the single return value # to preserve the original behavior of ModelChain if self.system.num_arrays == 1: @@ -726,8 +726,8 @@ def adr_inverter(self): return self def pvwatts_inverter(self): - ac = self.system.get_ac('pvwatts', self.results.dc) - self.results.ac = ac.fillna(0) + self.results.ac = self.system.get_ac('pvwatts', self.results.dc) + # self.results.ac = ac.fillna(0) return self @property