fix(765 이음매): LAS 나중 올리기 옛 필터 지우기가 새로 지은 다듬기 모델까지 지우던 것 — 지은 필터가 옛 이름을 앞머리로 품으면 남김

- 766-1(기본 = 업체 분류 + 다듬기 · classification_refine) 과 637-3 drop_stale_filters 가 만나 classification 을 지우며 dtm_classification_refine.npz · implicit_classification_refine*.npz 까지 지움(라이다 짓기 직후 모델 없음)
- test_637_lidar B 뿌리 짓기: 기대 필터를 다듬기 이름으로(옛 csf · ptd 기본 아님) · 모델 npz 만 봄 · 긴 이름 지은 필터 지킴 시험 하나 덧

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-03 16:04:17 +09:00
co-authored by Claude Opus 5.5
parent 5523522df4
commit fe6f67d123
2 changed files with 27 additions and 3 deletions
+5
View File
@@ -185,7 +185,12 @@ def drop_stale_filters(base: Path, built: list[str]) -> list[str]:
*(processed / name for name in (f"mask_{key}.npy", f"ground_points_{key}.npz")),
processed / f"preview_points_{key}.bin",
]
# 지은 필터가 이 이름을 앞머리로 품으면(`classification` ⊂ `classification_refine` · 766)
# 그 파일은 지은 필터 것 — 남김
longer = [b for b in built if b.startswith(f"{key}_")]
for path in paths:
if any(f"_{b}." in path.name or f"_{b}_" in path.name for b in longer):
continue
if path.is_file():
path.unlink()
if path.parent == models and path.suffix == ".npz":