feat(cadfs): expand reconstruction capability coverage
This commit is contained in:
@@ -24,7 +24,15 @@ def _assess(report: dict[str, Any], limits: dict[str, float]) -> dict[str, Any]:
|
||||
|
||||
|
||||
def compare_steps(gold_step: Path, rebuilt_step: Path, *, surface_tessellation_mm: float = 0.05) -> dict[str, Any]:
|
||||
from onshape_to_cdsl.compare import strict_compare
|
||||
# ``onshape_to_cdsl`` is a sibling src-layout package. CADFS commands
|
||||
# intentionally require only ``PYTHONPATH=backend:.`` so they must work
|
||||
# from a source checkout as well as an installed package.
|
||||
try:
|
||||
from onshape_to_cdsl.compare import strict_compare
|
||||
except ModuleNotFoundError as error:
|
||||
if error.name != "onshape_to_cdsl.compare":
|
||||
raise
|
||||
from onshape_to_cdsl.src.onshape_to_cdsl.compare import strict_compare
|
||||
raw = strict_compare(
|
||||
gold_step,
|
||||
rebuilt_step,
|
||||
|
||||
Reference in New Issue
Block a user