Skip to content

Commit

Permalink
Merge pull request #758 from hz-xiaxz/fix-issue-757
Browse files Browse the repository at this point in the history
fix issue #757
  • Loading branch information
nkeim authored May 30, 2024
2 parents 3912782 + 30f4de7 commit 9eaf029
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trackpy/motion.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def emsd(traj, mpp, fps, max_lagtime=100, detail=False, pos_columns=None):
if not detail:
return results.set_index('lagt')['msd']
# correctly compute the effective number of independent measurements
results['N'] = msds['N'].sum(level=1)
results['N'] = msds['N'].groupby(level=1).sum()
return results


Expand Down

0 comments on commit 9eaf029

Please sign in to comment.