MCPcopy Create free account
hub / github.com/TheLastBen/fast-stable-diffusion / getLayout

Method getLayout

Dreambooth/blocks.py:1023–1029  ·  view source on GitHub ↗
(block)

Source from the content-addressed store, hash-verified

1021 }
1022
1023 def getLayout(block):
1024 if not isinstance(block, BlockContext):
1025 return {"id": block._id}
1026 children_layout = []
1027 for child in block.children:
1028 children_layout.append(getLayout(child))
1029 return {"id": block._id, "children": children_layout}
1030
1031 config["layout"] = getLayout(self)
1032

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected