From f710de74271c78873539784178b956dd71882cd1 Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Sun, 1 Nov 2020 13:28:49 -0600
Subject: [PATCH] minor

---
 modules/amv/intercompare.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/amv/intercompare.py b/modules/amv/intercompare.py
index eefd67be..da8c7cf5 100644
--- a/modules/amv/intercompare.py
+++ b/modules/amv/intercompare.py
@@ -124,7 +124,7 @@ def filter_amvs(amvs, qi=None, cqi=50, qif=None, lat_range=None):
     if lat_range is not None:
         keep = np.logical_and(amvs[:, amv_lat_idx] > lat_range[0], amvs[:, amv_lat_idx] < lat_range[1])
         if np.sum(keep) == 0:
-            return
+            return None
         amvs = amvs[keep, :]
 
     if cqi is None:
-- 
GitLab