Skip to content

Commit

Permalink
Merge branch 'develop' into nlstem
Browse files Browse the repository at this point in the history
  • Loading branch information
drowenhorst-nrl committed Dec 5, 2024
2 parents c3c68f0 + f812300 commit 6bbd3b7
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 6bbd3b7

Please sign in to comment.