1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
From: Roland Mas <lolando@debian.org>
Date: Fri, 24 Oct 2025 16:47:47 +0200
Subject: Fix two syntax warnings
---
arpys/postprocessing.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arpys/postprocessing.py b/arpys/postprocessing.py
index ef0112c..845ea17 100755
--- a/arpys/postprocessing.py
+++ b/arpys/postprocessing.py
@@ -2362,12 +2362,12 @@ def symmetrize_map(kx, ky, mapdata, clean=False, overlap=False, n_rot=4,
# bitwise `not` operator
kxs_ib = KV[0,~where_n]
kys_ib = KV[1,~where_m]
- if len(kxs_ib) is not 0 :
+ if len(kxs_ib) != 0 :
new_kxmin = kxs_ib.min()
new_kxmax = kxs_ib.max()
kxmin = new_kxmin if new_kxmin > kxmin else kxmin
kxmax = new_kxmax if new_kxmax < kxmax else kxmax
- if len(kys_ib) is not 0 :
+ if len(kys_ib) != 0 :
new_kymin = kys_ib.min()
new_kymax = kys_ib.max()
kymin = new_kymin if new_kymin > kymin else kymin
|