Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix import statement for asap.py #59

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/asap.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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

Expand Down Expand Up @@ -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(
Expand Down