Skip to content

Commit

Permalink
return tuples instead of lists for compatibility in 'thres' and 'thre…
Browse files Browse the repository at this point in the history
…s-fast' segment finders
  • Loading branch information
kaustubhmote committed Jan 25, 2024
1 parent e249dbe commit 03500ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nmrglue/analysis/peakpick.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ def find_pseg_slice(data, location, thres):
stop = stop + 1
al[dim] = stop
seg_slice.append(slice(start + 1, stop))
return seg_slice
return tuple(seg_slice)


def find_nseg_slice(data, location, thres):
Expand All @@ -558,4 +558,4 @@ def find_nseg_slice(data, location, thres):
stop = stop + 1
al[dim] = stop
seg_slice.append(slice(start + 1, stop))
return seg_slice
return tuple(seg_slice)

0 comments on commit 03500ab

Please sign in to comment.