Skip to content

Commit dd8873f

Browse files
damborik22claude
andcommitted
Fix PXDesign length scan CSV path (use find instead of hardcoded)
PXDesign names output subdirectories after the input YAML task name (e.g. input_len80/) not a fixed 'input/'. Use find to locate summary.csv in design_outputs/ for both counting and merging. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 83d7cb8 commit dd8873f

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

configurator/configurator.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1292,8 +1292,9 @@ def write_run_pxdesign(path: Path, cfg: dict):
12921292
-i "$INPUT_YAML" \\
12931293
-o "$OUTPUT_DIR"
12941294
1295-
if [[ -f "$OUTPUT_DIR/design_outputs/input/summary.csv" ]]; then
1296-
N_DONE=$(tail -n +2 "$OUTPUT_DIR/design_outputs/input/summary.csv" | wc -l)
1295+
SCAN_CSV=$(find "$OUTPUT_DIR/design_outputs" -name "summary.csv" 2>/dev/null | head -1)
1296+
if [[ -n "$SCAN_CSV" ]]; then
1297+
N_DONE=$(tail -n +2 "$SCAN_CSV" | wc -l)
12971298
TOTAL_DESIGNS=$((TOTAL_DESIGNS + N_DONE))
12981299
echo " -> ${{N_DONE}} designs at length ${{LENGTH}}"
12991300
fi
@@ -1307,8 +1308,8 @@ def write_run_pxdesign(path: Path, cfg: dict):
13071308
MERGED="$RUN_DIR/pxdesign/summary_all.csv"
13081309
FIRST=true
13091310
for LENGTH in $(seq "$MIN_LENGTH" "$LENGTH_STEP" "$MAX_LENGTH"); do
1310-
CSV="$RUN_DIR/pxdesign/outputs_len${{LENGTH}}/design_outputs/input/summary.csv"
1311-
if [[ -f "$CSV" ]]; then
1311+
CSV=$(find "$RUN_DIR/pxdesign/outputs_len${{LENGTH}}/design_outputs" -name "summary.csv" 2>/dev/null | head -1)
1312+
if [[ -n "$CSV" ]]; then
13121313
if [[ "$FIRST" == true ]]; then
13131314
cat "$CSV" > "$MERGED"
13141315
FIRST=false

0 commit comments

Comments
 (0)