Skip to content

Commit

Permalink
Ignore a warning in the exact mode reprojection
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed May 6, 2015
1 parent 0c0eabd commit 2a39d34
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion reproject/spherical_intersect/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2a39d34

Please sign in to comment.