You need to sign in or sign up before continuing.
Commit 51026c0e authored by kazushi.kawamura's avatar kazushi.kawamura

fix bugs

parent 9605a723
......@@ -41,7 +41,7 @@ def solve(params):
seed = random.randint(0, 2147483647) # seed: uint32_t <= 2147483647
cmds = f'python3 {basedir}/solver_soft/scripts/main.py -p {problem_filepath} -s {seed} -o {solution_filepath}'.split()
cmds = f'python3 {basedir}/scripts/main.py -p {problem_filepath} -s {seed} -o {solution_filepath}'.split()
proc = subprocess.Popen(
cmds,
......
......@@ -106,11 +106,11 @@ def main(args):
if W_ext[0] > info['W'][0] or H_ext[0] > info['H'][0]:
print('Fail satisfying constraint T_T')
sys.exit(1)
sys.exit(1)
else:
print('Satisfy constraint ^_^')
if args['output'] is not None: mySolverModule.output_to_file(args['output'], W_ext[0], H_ext[0], info['blocks'][0], info['line_num'][0], info['block_info'], result)
sys.exit(0)
sys.exit(0)
if __name__ == '__main__':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment