Skip to content

Commit

Permalink
Fix numba typing error
Browse files Browse the repository at this point in the history
Signed-off by: David Rowenhorst <[email protected]>
  • Loading branch information
drowenhorst-nrl committed Dec 5, 2024
1 parent eb8055d commit f812300
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyebsdindex/nlpar_cpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,9 @@ def calcnlpar(self, chunksize=0, searchradius=None, lam = None, dthresh = None,
sr = np.int64(self.searchradius)
diff_offset = np.float32(self.diff_offset)

if type(diff_offset) is np.ndarray:
diff_offset = np.float32(diff_offset[0])

if filename is not None:
self.setfile(filepath=filename)

Expand Down

0 comments on commit f812300

Please sign in to comment.