master > master: code py - syntaxfehler

This commit is contained in:
RD 2022-06-10 12:46:53 +02:00
parent 90c48a85f9
commit 6920944cdf
1 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@ sys.path.insert(0, os.getcwd());
from src.thirdparty.maths import *;
from models.generated.config import *;
from models.generated.commands import *;
from src.core.log import *;
from src.setup.config import *;
@ -36,7 +37,7 @@ def enter():
if isinstance(command, CommandTsp):
tsp_algorithm(
dist = np.asarray(command.dist, dtype=float),
optimise = min if command.optimise == EnumTspOptimise.min else max,
optimise = min if command.optimise == EnumTSPOptimise.min else max,
verbose = OPTIONS.tsp.verbose,
);
elif isinstance(command, CommandHirschberg):