Skip to content

Commit

Permalink
Remove too strict input values check in lstsq1d()
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeyPechnikov committed Apr 11, 2024
1 parent 46f5c3a commit 8ebdeec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pygmtsar/pygmtsar/Stack_sbas.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 8ebdeec

Please sign in to comment.