MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / format_debug_info

Function format_debug_info

src/bonsai/bonsai/__init__.py:171–179  ·  view source on GitHub ↗
(info: dict[str, Any])

Source from the content-addressed store, hash-verified

169
170
171def format_debug_info(info: dict[str, Any]) -> str:
172 last_actions = ""
173 for action in info["last_actions"]:
174 last_actions += f"\n# {action['type']}: {action['name']}"
175 if settings := action.get("settings"):
176 last_actions += f"\n>>> {settings}"
177 info["last_actions"] = last_actions
178 text = "\n".join(f"{k}: {v}" for k, v in info.items())
179 return text.strip()
180
181
182def get_binaries(path: Path) -> Generator[Path, None, None]:

Callers 3

executeMethod · 0.90
__init__.pyFile · 0.85
executeMethod · 0.85

Calls 3

getMethod · 0.45
joinMethod · 0.45
itemsMethod · 0.45

Tested by

no test coverage detected