From 6192782e5519ad8bfdf5cd7588cdbb5db3a80bbc Mon Sep 17 00:00:00 2001 From: Ondrej Pesek Date: Sat, 26 Oct 2024 15:39:28 +0200 Subject: [PATCH] Update imagery/i.atcorr/create_iwave.py Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- imagery/i.atcorr/create_iwave.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imagery/i.atcorr/create_iwave.py b/imagery/i.atcorr/create_iwave.py index 75bcb1578d0..827b8be54c4 100644 --- a/imagery/i.atcorr/create_iwave.py +++ b/imagery/i.atcorr/create_iwave.py @@ -220,7 +220,7 @@ def get_max_wavelength(c, rthresh, fi): :param fi: filter function """ while c < len(fi) - 1 and fi[c + 1] > rthresh: - c = c + 1 + c += 1 return np.floor(li[0] * 1000 + (2.5 * c)) # keep in sync with IWave::parse()