Skip to content

Commit

Permalink
Initialize mesh background to nan
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewturk committed Jul 25, 2019
1 parent cab1f48 commit 5172707
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions yt/utilities/lib/pixelization_routines.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,7 @@ def pixelize_element_mesh(np.ndarray[np.float64_t, ndim=2] coords,
int index_offset = 0):
cdef np.ndarray[np.float64_t, ndim=3] img
img = np.zeros(buff_size, dtype="float64")
img[:] = np.nan
# Two steps:
# 1. Is image point within the mesh bounding box?
# 2. Is image point within the mesh element?
Expand Down

0 comments on commit 5172707

Please sign in to comment.