Skip to content

Commit 0b09085

Browse files
committed
emsd results index is lagt
Fix #607
1 parent 42e5315 commit 0b09085

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

trackpy/motion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ def emsd(traj, mpp, fps, max_lagtime=100, detail=False, pos_columns=None):
265265
return results.set_index('lagt')['msd']
266266
# correctly compute the effective number of independent measurements
267267
results['N'] = msds['N'].groupby(level=1).sum()
268-
return results
268+
return results.set_index('lagt')
269269

270270

271271
def compute_drift(traj, smoothing=0, pos_columns=None):

0 commit comments

Comments
 (0)