MCPcopy Create free account
hub / github.com/NVlabs/CTG / _format

Method _format

tbsim/utils/diffuser_utils/progress.py:122–127  ·  view source on GitHub ↗
(self, chunks)

Source from the content-addressed store, hash-verified

120 return [l[i:i+n] for i in range(0, len(l), n)]
121
122 def _format(self, chunks):
123 lines = [self._format_chunk(chunk) for chunk in chunks]
124 lines.insert(0,'')
125 padding = '\n' + ' '*self.indent
126 string = padding.join(lines)
127 return string, lines
128
129 def _format_chunk(self, chunk):
130 line = ' | '.join([self._format_param(param) for param in chunk])

Callers 1

set_descriptionMethod · 0.95

Calls 1

_format_chunkMethod · 0.95

Tested by

no test coverage detected