From 3d49e29cac938e3ad7c806919535253f625f67fb Mon Sep 17 00:00:00 2001 From: Alexey Pechnikov Date: Thu, 25 Jan 2024 17:04:42 +0700 Subject: [PATCH] Fix missed variable for one of function parameters combinations --- pygmtsar/pygmtsar/Stack_detrend.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pygmtsar/pygmtsar/Stack_detrend.py b/pygmtsar/pygmtsar/Stack_detrend.py index bc812b10..6db2503e 100644 --- a/pygmtsar/pygmtsar/Stack_detrend.py +++ b/pygmtsar/pygmtsar/Stack_detrend.py @@ -207,6 +207,7 @@ def regression_block(data, variables, weight, algorithm, **kwargs): nanmask = nanmask_data | nanmask_values | nanmask_weight else: weight_values = None + nanmask_weight = None nanmask = nanmask_data | nanmask_values # regression requires enough amount of valid pixels