Skip to content

Commit 1098caf

Browse files
rostamclaude
andcommitted
run_precol: use release build and fix import
- Point PRECOL to cmake-build-release/PreCol (release build) - Remove unused sys import Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 0c00ab3 commit 1098caf

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

mybuild/run_precol.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,11 @@
77
import csv
88
import os
99
import subprocess
10-
import sys
1110
import tempfile
1211
import time
1312

1413
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
15-
PRECOL = os.path.join(SCRIPT_DIR, "./PreCol")
14+
PRECOL = os.path.join(SCRIPT_DIR, "/home/rostam/kara/PreCol/cmake-build-release/PreCol")
1615
INPUT_CSV = os.path.join(SCRIPT_DIR, "input.csv")
1716
OUTPUT_CSV = os.path.join(SCRIPT_DIR, "Output/output_precol.csv")
1817
TIMEOUT_SEC = 120 # kill a single matrix run after this many seconds
@@ -28,7 +27,7 @@
2827
output_header_written = False
2928

3029
with open(OUTPUT_CSV, "w", newline="") as out_f:
31-
out_writer = None # initialised after first successful run
30+
out_writer = None # initialized after the first successful run
3231

3332
for i, row in enumerate(rows, 1):
3433
matrix = row["Matrix"]

0 commit comments

Comments
 (0)