Skip to content
Prev Previous commit
Next Next commit
use findclumpsN with nFrames 1 to get clumping only on same frame
  • Loading branch information
barentine committed Mar 8, 2021
commit 799bd6d0daefb54166e3c43ae29b49095a5e6883
5 changes: 3 additions & 2 deletions PYME/Analysis/points/multiview.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,9 @@ def raw_shifts_by_frame(x0, y0, t0, x0err, y0err, x1, y1, t1, x1err, y1err,
if np.isscalar(clump_distance):
clump_distance = clump_distance*np.ones_like(x)

# FIXME - findClumps should really work with nFrame gap 0, right?
assigned = deClump.findClumps(t.astype(np.int32), x, y, clump_distance, 1)
# TODO - update this call when we rework nFrames. 1 currently means same
# frame only, which is what we want here.
assigned = deClump.findClumpsN(t.astype(np.int32), x, y, clump_distance, 1)
ids, count = np.unique(assigned, return_counts=True)

# reorder by id (is this already done actually?)
Expand Down