refactor(472 덧 관 자리): 관 세트 읽기 · 얹기를 B06_Section_Engine_Culvert_Sets.py 로 나눔 — 동작 같음 · 700줄 여유
- load_culvert_sets · culvert_sets_from · attach_culvert_sets · attach_culvert_specs + 얹기 상수 셋 옮김(700 → 576) - 부르는 쪽(Engine_Attach · Engine_Tilt · Router_Design_Ranges) · 시험 import 만 새 자리로 - test_b06_pipe_length 소스 읽기 = 새 파일 · 위키 B06_backend 자리 고침 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -72,7 +72,7 @@ def main() -> int:
|
||||
print(f"3) cross_*.json 파일={len(files)}개 구조물 표식={len(with_structure)}건 {with_structure}")
|
||||
|
||||
# 4) B06 읽기 경로 — 실제로 세트가 붙는가
|
||||
from B06_Section.B06_Section_Engine_Culvert import load_culvert_sets
|
||||
from B06_Section.B06_Section_Engine_Culvert_Sets import load_culvert_sets
|
||||
|
||||
sets = load_culvert_sets(project)
|
||||
print(f"4) load_culvert_sets 세트={len(sets)}건")
|
||||
|
||||
@@ -26,7 +26,8 @@ for path in (ROOT, Path(__file__).resolve().parent):
|
||||
sys.path.insert(0, str(path))
|
||||
|
||||
import test_b06_culvert_sets_mirror as mirror # noqa: E402
|
||||
from B06_Section.B06_Section_Engine_Culvert import attach_culvert_sets, pipe_points_file # noqa: E402
|
||||
from B06_Section.B06_Section_Engine_Culvert import pipe_points_file # noqa: E402
|
||||
from B06_Section.B06_Section_Engine_Culvert_Sets import attach_culvert_sets # noqa: E402
|
||||
|
||||
# 검증 프로젝트 꼴 — 20 · 90 물넘이(폭 10) · 95 배관(도수로) · 100 배관 + 100.3 박스(유출 흙막이) · 60 세월교(흙막이)
|
||||
POINTS = [
|
||||
|
||||
@@ -24,7 +24,8 @@ import pytest
|
||||
from B05_Profile.B05_Profile_Engine_Sections import relabel_pipe_stations, resolve_extra_stations
|
||||
from B05_Profile.B05_Profile_Structures_Repository import structures_file_path
|
||||
from B05_Profile.B05_Profile_Structures_Schema import load_definition
|
||||
from B06_Section.B06_Section_Engine_Culvert import attach_culvert_sets, pipe_points_file
|
||||
from B06_Section.B06_Section_Engine_Culvert import pipe_points_file
|
||||
from B06_Section.B06_Section_Engine_Culvert_Sets import attach_culvert_sets
|
||||
from B06_Section.B06_Section_Engine_Structures_Wall import attach_wall_structures
|
||||
from B06_Section.B06_Section_Engine_Tilt import attach_underdrains
|
||||
from common_util.common_util_drainage_pipes import parse_pipe_points
|
||||
|
||||
@@ -28,7 +28,7 @@ import B06_Section.B06_Section_Engine_Tilt as tilt_mod # noqa: E402
|
||||
import B06_Section.B06_Section_Router_Design as design_mod # noqa: E402
|
||||
import B06_Section.B06_Section_Router_Design_Ranges as ranges_mod # noqa: E402
|
||||
from B05_Profile.B05_Profile_Structures_Schema import StructureInstance # noqa: E402
|
||||
from B06_Section.B06_Section_Engine_Culvert import culvert_sets_from # noqa: E402
|
||||
from B06_Section.B06_Section_Engine_Culvert_Sets import culvert_sets_from # noqa: E402
|
||||
from B06_Section.B06_Section_Engine_Design import compute_cross_design # noqa: E402
|
||||
from common_util.common_util_drainage_pipes import parse_pipe_points # noqa: E402
|
||||
from config.config_system_design import STANDARD_CROSS_SECTION # noqa: E402
|
||||
|
||||
@@ -29,7 +29,7 @@ import B06_Section.B06_Section_Engine_Tilt as tilt_mod # noqa: E402
|
||||
import B06_Section.B06_Section_Router_Design as design_mod # noqa: E402
|
||||
import B06_Section.B06_Section_Router_Design_Ranges as ranges_mod # noqa: E402
|
||||
from B05_Profile.B05_Profile_Structures_Schema import StructureInstance # noqa: E402
|
||||
from B06_Section.B06_Section_Engine_Culvert import culvert_sets_from # noqa: E402
|
||||
from B06_Section.B06_Section_Engine_Culvert_Sets import culvert_sets_from # noqa: E402
|
||||
from B06_Section.B06_Section_Engine_Design import compute_cross_design # noqa: E402
|
||||
from common_util.common_util_drainage_pipes import parse_pipe_points # noqa: E402
|
||||
from config.config_system_design import ( # noqa: E402
|
||||
|
||||
@@ -20,8 +20,8 @@ if str(ROOT) not in sys.path:
|
||||
from B06_Section.B06_Section_Engine_Culvert import ( # noqa: E402
|
||||
BOX_COVER_M,
|
||||
_box_set,
|
||||
attach_culvert_sets,
|
||||
)
|
||||
from B06_Section.B06_Section_Engine_Culvert_Sets import attach_culvert_sets # noqa: E402
|
||||
|
||||
|
||||
def test_box_set_defaults() -> None:
|
||||
|
||||
@@ -17,9 +17,9 @@ from B06_Section.B06_Section_Engine_Culvert import ( # noqa: E402
|
||||
MIN_PIPE_COVER_M,
|
||||
REVET_FACE_SLOPE,
|
||||
_culvert_set,
|
||||
attach_culvert_sets,
|
||||
pipe_points_file,
|
||||
)
|
||||
from B06_Section.B06_Section_Engine_Culvert_Sets import attach_culvert_sets # noqa: E402
|
||||
|
||||
|
||||
def test_cross_reference_constants_match_plan():
|
||||
|
||||
@@ -19,10 +19,8 @@ if str(PROJECT_ROOT) not in sys.path:
|
||||
sys.path.insert(0, str(PROJECT_ROOT))
|
||||
|
||||
from B05_Profile.B05_Profile_Structures_Schema import structure_type_map # noqa: E402
|
||||
from B06_Section.B06_Section_Engine_Culvert import ( # noqa: E402
|
||||
attach_culvert_sets,
|
||||
pipe_points_file,
|
||||
)
|
||||
from B06_Section.B06_Section_Engine_Culvert import pipe_points_file # noqa: E402
|
||||
from B06_Section.B06_Section_Engine_Culvert_Sets import attach_culvert_sets # noqa: E402
|
||||
|
||||
TSC = PROJECT_ROOT / "config" / "node_modules" / "typescript" / "bin" / "tsc"
|
||||
|
||||
|
||||
@@ -21,8 +21,8 @@ from B06_Section.B06_Section_Engine_Culvert import ( # noqa: E402
|
||||
FORD_SLAB_THICKNESS_M,
|
||||
FORD_WALL_THICKNESS_M,
|
||||
_ford_set,
|
||||
attach_culvert_sets,
|
||||
)
|
||||
from B06_Section.B06_Section_Engine_Culvert_Sets import attach_culvert_sets # noqa: E402
|
||||
|
||||
|
||||
def test_ford_set_defaults() -> None:
|
||||
|
||||
@@ -9,11 +9,8 @@
|
||||
import json
|
||||
import math
|
||||
|
||||
from B06_Section.B06_Section_Engine_Culvert import (
|
||||
FORD_PAVEMENT_DEFAULT_WIDTH_M,
|
||||
attach_culvert_sets,
|
||||
load_culvert_sets,
|
||||
)
|
||||
from B06_Section.B06_Section_Engine_Culvert import FORD_PAVEMENT_DEFAULT_WIDTH_M
|
||||
from B06_Section.B06_Section_Engine_Culvert_Sets import attach_culvert_sets, load_culvert_sets
|
||||
from B06_Section.B06_Section_Router_Design import paved_at, pavement_ranges
|
||||
|
||||
|
||||
|
||||
@@ -101,7 +101,7 @@ def test_소유_측점에만_싣는다():
|
||||
layouts = _LAYOUTS.read_text(encoding="utf-8")
|
||||
assert "ownerChainage" in layouts, "소유 측점을 안 가리고 있다"
|
||||
assert "isOwner(section.culvert.chainage_m)" in layouts, "관이 놓인 자리를 안 읽고 있다"
|
||||
py = (PROJECT_ROOT / "B06_Section" / "B06_Section_Engine_Culvert.py").read_text(
|
||||
py = (PROJECT_ROOT / "B06_Section" / "B06_Section_Engine_Culvert_Sets.py").read_text(
|
||||
encoding="utf-8"
|
||||
)
|
||||
ts = (PROJECT_ROOT / "common_util" / "common_util_culvert_sets.ts").read_text(encoding="utf-8")
|
||||
|
||||
Reference in New Issue
Block a user