Skip to content

Commit 4e70a1b

Browse files
committed
Update evaluator.py
1 parent 155a769 commit 4e70a1b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/circle_packing/evaluator.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def evaluate(program_path):
9999

100100
# Run packing with timeout
101101
centers, radii, sum_radii = run_with_timeout(
102-
program.run_packing, args=(n,), timeout_seconds=30
102+
program.run_packing, args=(n,), timeout_seconds=300
103103
)
104104

105105
end_time = time.time()
@@ -149,7 +149,7 @@ def evaluate(program_path):
149149
results[n] = {
150150
"valid": False,
151151
"sum_radii": 0.0,
152-
"time": 30.0, # timeout value
152+
"time": 300.0, # timeout value
153153
"target_ratio": 0.0,
154154
}
155155
except Exception as e:
@@ -205,7 +205,7 @@ def evaluate_stage1(program_path):
205205
try:
206206
# Run with a lower iteration count for quicker checking
207207
centers, radii, sum_radii = run_with_timeout(
208-
program.run_packing, args=(26,), timeout_seconds=10
208+
program.run_packing, args=(26,), timeout_seconds=100
209209
)
210210

211211
# Ensure centers and radii are numpy arrays

0 commit comments

Comments
 (0)