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 validation crash if no reference data was collected #2137

Merged
merged 4 commits into from
Apr 26, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Early exit if AccuracyPrecisionResult is not valid in Accuracy_Visual…
…izer
  • Loading branch information
romanroibu committed Apr 20, 2021
commit 88606ab0ffaa0e03c9b7dbc93f068b48d502ff48
3 changes: 3 additions & 0 deletions pupil_src/shared_modules/accuracy_visualizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,9 @@ def recalculate(self):
succession_threshold=self.succession_threshold,
)

if not results.is_valid:
return
romanroibu marked this conversation as resolved.
Show resolved Hide resolved

accuracy = results.accuracy.result
if np.isnan(accuracy):
self.accuracy = None
Expand Down