Generate sandbox 2 rib profile (11 pockets, validated)

This commit is contained in:
2026-02-16 21:33:58 +00:00
parent 98e4b2be02
commit c5226084fe
3 changed files with 1221 additions and 124 deletions

View File

@@ -33,7 +33,10 @@ def _merge_params(geometry: Dict[str, Any], params_file: Path | None) -> Dict[st
if not isinstance(user_params, dict):
raise ValueError("--params must point to a JSON object")
params.update(user_params)
params["thickness"] = float(geometry.get("thickness", params.get("thickness", 10.0)))
raw_thick = geometry.get("thickness")
if raw_thick is None:
raw_thick = params.get("thickness", 10.0)
params["thickness"] = float(raw_thick)
return params