MCPcopy Create free account
hub / github.com/TPCD/DCCL / _align_output

Method _align_output

project_utils/visualization_utils.py:1119–1125  ·  view source on GitHub ↗
(self, field_idx, output)

Source from the content-addressed store, hash-verified

1117 self.log(suffix)
1118
1119 def _align_output(self, field_idx, output):
1120 for output_idx, o in enumerate(output):
1121 if len(o) < self.field_widths[field_idx][output_idx]:
1122 num_spaces = self.field_widths[field_idx][output_idx] - len(o)
1123 output[output_idx] += ' ' * num_spaces
1124 else:
1125 self.field_widths[field_idx][output_idx] = len(o)
1126
1127 def _join_results(self, results):
1128 joined_out = map(lambda i: (i[0], ' '.join(i[1])), results)

Callers 1

_log_allMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected