1 parent
db9292969d
commit
4c59935870
4 files changed
+8
-8
No files matched your search
@@ -1,5 +1,5 @@
|
||||
PROGRAM_NAME = "KaTrain"
|
||||
VERSION = "1.8.0"
|
||||
VERSION = "1.8.1"
|
||||
HOMEPAGE = "https://github.com/sanderland/katrain"
|
||||
CONFIG_MIN_VERSION = "1.8.0" # keep config files from this version
|
||||
ANALYSIS_FORMAT_VERSION = "1.0"
|
||||
|
||||
@@ -8,7 +8,7 @@ import time
|
||||
import traceback
|
||||
from collections import defaultdict
|
||||
|
||||
from katrain.core.constants import OUTPUT_DEBUG, OUTPUT_ERROR, OUTPUT_INFO, OUTPUT_KATAGO_STDERR
|
||||
from katrain.core.constants import OUTPUT_DEBUG, OUTPUT_ERROR, OUTPUT_INFO, OUTPUT_KATAGO_STDERR, DATA_FOLDER
|
||||
from katrain.core.engine import EngineDiedException, BaseEngine
|
||||
from katrain.core.game import BaseGame
|
||||
from katrain.core.lang import i18n
|
||||
@@ -56,6 +56,7 @@ class KataGoContributeEngine(BaseEngine):
|
||||
"maxSimultaneousGames": self.config.get("maxgames") or self.DEFAULT_MAX_GAMES,
|
||||
"includeOwnership": self.config.get("ownership") or False,
|
||||
"logGamesAsJson": True,
|
||||
"homeDataDir": os.path.expanduser(DATA_FOLDER)
|
||||
}
|
||||
self.max_buffer_games = 2 * settings_dict["maxSimultaneousGames"]
|
||||
settings = {f"{k}={v}" for k, v in settings_dict.items()}
|
||||
|
||||
@@ -13,7 +13,7 @@ from typing import Callable, Dict, List, Optional
|
||||
|
||||
from kivy.utils import platform as kivy_platform
|
||||
|
||||
from katrain.core.constants import OUTPUT_DEBUG, OUTPUT_ERROR, OUTPUT_EXTRA_DEBUG, OUTPUT_KATAGO_STDERR
|
||||
from katrain.core.constants import OUTPUT_DEBUG, OUTPUT_ERROR, OUTPUT_EXTRA_DEBUG, OUTPUT_KATAGO_STDERR, DATA_FOLDER
|
||||
from katrain.core.game_node import GameNode
|
||||
from katrain.core.lang import i18n
|
||||
from katrain.core.sgf_parser import Move
|
||||
@@ -119,7 +119,7 @@ class KataGoEngine(BaseEngine):
|
||||
self.katrain.log(i18n._("Kata config not found").format(config=cfg), OUTPUT_ERROR)
|
||||
return # don't start
|
||||
self.command = shlex.split(
|
||||
f'"{exe}" analysis -model "{model}" -config "{cfg}" -analysis-threads {config["threads"]}'
|
||||
f'"{exe}" analysis -model "{model}" -config "{cfg}" -analysis-threads {config["threads"]} -override-config "homeDataDir={os.path.expanduser(DATA_FOLDER)}"'
|
||||
)
|
||||
self.start()
|
||||
|
||||
|
||||
Reference in new issue
Block a user