Skip to content

Avoiding div0 crash in LitQATaskDataset.compute_trajectory_metrics #439

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

Merged
merged 2 commits into from
Sep 19, 2024

Conversation

jamesbraza
Copy link
Collaborator

When a tool fails, this leads to no answer being present, which leads to a division by 0 error in LitQATaskDataset.compute_trajectory_metrics. This PR fixes that error, and also tests for it

@jamesbraza jamesbraza added the bug Something isn't working label Sep 19, 2024
@jamesbraza jamesbraza self-assigned this Sep 19, 2024
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Sep 19, 2024
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Sep 19, 2024
@jamesbraza jamesbraza enabled auto-merge (squash) September 19, 2024 05:42
@jamesbraza jamesbraza merged commit c8abc06 into main Sep 19, 2024
5 checks passed
@jamesbraza jamesbraza deleted the no-div0 branch September 19, 2024 05:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lgtm This PR has been approved by a maintainer size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants