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 error when totalDensity is 0 in sumlogDens survey #342

Merged

Conversation

acavelan
Copy link
Collaborator

@acavelan acavelan commented Apr 1, 2022

If the diagnostic specificity is less than 1.0, then there will be false positives, which is expected.

However, OpenMalaria will try to report the sum of the log of the totalDensity values for each host, even when "sumlogDens" is false in the survey optons.

Computing log(totalDensity) when totalDensity is 0 is not valid and raises an errno error, which is then reported in the main().

With this commit, OM will not compute the log if totalDensity is 0.

@acavelan acavelan changed the title fix error when totalDensity is 0 in sumlogDens survey Fix error when totalDensity is 0 in sumlogDens survey Apr 1, 2022
Copy link
Collaborator

@nakul7 nakul7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved as discussed on call.

@acavelan acavelan merged commit 54581bd into SwissTPH:main Apr 7, 2022
@acavelan acavelan deleted the fixErrorTotalDensityZeroSumlogDens branch January 5, 2023 10:40
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.

2 participants