Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Issue #772, alternative that doesn't affect imsd() but still correctly calculates weighted average for emsd() #774

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

vivarose
Copy link
Contributor

@vivarose vivarose commented Aug 18, 2024

My previous pull-request, #773 included NaN output, which was intentional (and I believe it was correct!) but caused some tests to fail. [Edit: No, that is not what caused some tests to fail. They are still failing.]

This is a new version intended to calculate the emsd correctly in cases of particle gaps (missing data), but to avoid the NaN output. The trick is to set the number of effective measurements N to 0 in cases where there are zero effective measurements.

@vivarose vivarose changed the title Fix Issue #772 Fix Issue #772, alternative that doesn't affect imsd() but still correctly calculates weighted average for emsd() Aug 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant