From 8ebdeecbe2096f084b785f9779bd125422aa1091 Mon Sep 17 00:00:00 2001 From: Alexey Pechnikov Date: Thu, 11 Apr 2024 09:27:45 +0700 Subject: [PATCH] Remove too strict input values check in lstsq1d() --- pygmtsar/pygmtsar/Stack_sbas.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pygmtsar/pygmtsar/Stack_sbas.py b/pygmtsar/pygmtsar/Stack_sbas.py index d06fd4c..3698a24 100644 --- a/pygmtsar/pygmtsar/Stack_sbas.py +++ b/pygmtsar/pygmtsar/Stack_sbas.py @@ -63,8 +63,8 @@ def lstsq1d(x, w, matrix, cumsum=True): w[nanmask] = 0 # check if x has enough valid values #print (f'{x.size}, {np.sum(nanmask)}, {matrix.shape[1]}') - if x.size - np.sum(nanmask) < matrix.shape[1]: - return np.nan * np.zeros(matrix.shape[1]) + #if x.size - np.sum(nanmask) < matrix.shape[1]: + # return np.nan * np.zeros(matrix.shape[1]) try: if np.all(w == 1):