Critical bug fix when setting test.errors

Somehow in 10 years I've not yet encounted that in python the expression 3 or 3 evaluates to 3, and not True. This allowed for an attempt to save non-boolean values into the test.error field. Which produced seemingly infinite time losses on some tests I was running with some of the first versions of Torch to ever be on OpenBench.

Also, don't report time loss PGNS back. No one cares about them, and flagging the tests is annoying.
This commit is contained in:
andrew committed 2023-08-31 04:16:37 -04:00
1 parent 4116e795d0
commit ddaeed8374
2 files changed
+2 -5

No files matched your search

-3
View File
@@ -571,9 +571,6 @@ class PGNHelper:
reason = PGNHelper.get_pgn_header(sliced_headers, 'Termination')
if reason and 'time forfeit' in reason:
return 'Time Forfeit'
if reason and 'abandoned' in reason:
return 'Disconnect'