Generate sandbox 2 rib profile (11 pockets, validated)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user