From 2a39d34d8397f60afeaf44a7b5f732dfefca484f Mon Sep 17 00:00:00 2001 From: Thomas Robitaille Date: Wed, 6 May 2015 22:57:34 +0200 Subject: [PATCH] Ignore a warning in the exact mode reprojection --- reproject/spherical_intersect/core.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/reproject/spherical_intersect/core.py b/reproject/spherical_intersect/core.py index c8a0dcaca..1b60cc1a3 100644 --- a/reproject/spherical_intersect/core.py +++ b/reproject/spherical_intersect/core.py @@ -187,7 +187,10 @@ def parallel_impl(nproc): pool.close() pool.join() - return array_new / weights, weights + with np.errstate(invalid='ignore'): + array_new /= weights + + return array_new, weights if _method == "c" and (nproc is None or nproc > 1): try: