From c6115690b0c2cf95b1d16480899741a06c5145e8 Mon Sep 17 00:00:00 2001 From: Mohamed Hassan <125613249+Mohamedhassan268@users.noreply.github.com> Date: Tue, 26 May 2026 16:08:12 +0300 Subject: [PATCH] fix: remove zero-fill in singlediode DC model to preserve NaNs (Closes #1409) --- pvlib/modelchain.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/pvlib/modelchain.py b/pvlib/modelchain.py index 45374bd6fa..6af240762c 100644 --- a/pvlib/modelchain.py +++ b/pvlib/modelchain.py @@ -665,9 +665,6 @@ 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) - # If the system has one Array, unwrap the single return value - # to preserve the original behavior of ModelChain if self.system.num_arrays == 1: self.results.diode_params = self.results.diode_params[0] self.results.dc = self.results.dc[0]