new katago

This commit is contained in:
Sander Land committed 2020-05-06 22:21:12 +02:00
1 parent bbb9648839
commit c297daf508
10 files changed
+3 -3

No files matched your search

BIN
View File
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+1 -1
View File
@@ -1,6 +1,6 @@
{
"engine": {
"katago": "KataGo/katago-bs",
"katago": "KataGo/katago",
"model": "KataGo/models/b15-1.3.2.txt.gz",
"config": "KataGo/analysis_config.cfg",
"threads": 16,
+2 -2
View File
@@ -239,10 +239,10 @@ class SGF:
if not encoding:
match = re.search(rb"CA\[(.*?)\]", bin_contents)
if match:
encoding = match[1].decode("ascii")
encoding = match[1].decode("ascii", errors="ignore")
else:
encoding = "ISO-8859-1" # default
decoded = bin_contents.decode(encoding=encoding)
decoded = bin_contents.decode(encoding=encoding, errors="ignore")
return cls.parse(decoded)
def __init__(self, contents):