soft-matter / trackpy

Python particle tracking toolkit
http://soft-matter.github.io/trackpy
Other
443 stars 131 forks source link

fix issue #757 #758

Closed hz-xiaxz closed 4 months ago

hz-xiaxz commented 6 months ago

issue #757 is due to the current update of pandas function df.sum(level=1) which should be replaced by df.groupby(level=1).sum(). I noticed that this bug has alright been fixed in the v0.62 release, however only two of three these problems were found. This PR solves the third.

I hope the PR can be merged soon.

PS: I'm new to github and may be unconcious of some rules in PR. If any unproper adjustment is made, please let me know.

nkeim commented 4 months ago

Thanks for this fix, @hz-xiaxz ! And thank you for your patience until I fixed our automated tests.

vivarose commented 1 month ago

Good catch, @hz-xiaxz!