From 76e9644417d61695a0234f411816121cf34a6ff2 Mon Sep 17 00:00:00 2001 From: kirubelt Date: Fri, 26 Jul 2024 16:34:38 +0300 Subject: [PATCH 1/2] fix add_matrix import --- src/asap.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/asap.py b/src/asap.py index 47b9430f..29a832fb 100644 --- a/src/asap.py +++ b/src/asap.py @@ -3,7 +3,7 @@ import argparse import json from utils.asap_helpers import solve_asap -from utils.matrix import add_matrix +from utils.matrix import add_matrices # Parse a json-formatted input instance, then apply iterative solving # strategies to come up with a solution minimizing completion time. @@ -153,7 +153,7 @@ def get_routing(args): if "matrices" not in data: # Embed required matrices prior to solving to avoid # duplicate matrix computations. - add_matrix(data, get_routing(args)) + add_matrices(data, get_routing(args)) # Iterative solving approach. response = solve_asap( From c70d8f04b61c59bcef58ee99398577b01e93b6e6 Mon Sep 17 00:00:00 2001 From: kirubelt Date: Fri, 26 Jul 2024 16:35:43 +0300 Subject: [PATCH 2/2] fix: correct argument concatenation for -t and -x options --- src/asap.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/asap.py b/src/asap.py index 29a832fb..bdba4242 100644 --- a/src/asap.py +++ b/src/asap.py @@ -24,9 +24,9 @@ def get_cl_args(args): if args.r: all_args.append("-r" + args.r) if args.t is not None: - all_args.append("-t " + str(args.t)) + all_args.append("-t" + str(args.t)) if args.x is not None: - all_args.append("-x " + str(args.x)) + all_args.append("-x" + str(args.x)) return all_args