We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b3e4d3 commit c73a96eCopy full SHA for c73a96e
hexrd/gridutil.py
@@ -87,9 +87,8 @@ def cellIndices(edges, points_1d):
87
# idx[off_lo] = np.nan
88
# if np.any(off_hi):
89
# idx[off_hi] = np.nan
90
- idx = np.array(idx)
91
- idx[np.isnan(idx)] = 0
92
- return np.array(idx).astype(int)
+ idx[np.isnan(idx)] = -1
+ return idx.astype(int)
93
94
95
@numba.njit(nogil=True, cache=True)
0 commit comments