MCPcopy
hub / github.com/diffgram/diffgram / build_label_colour_map

Function build_label_colour_map

shared/export/export_generation.py:140–148  ·  view source on GitHub ↗
(session, label_map)

Source from the content-addressed store, hash-verified

138
139
140def build_label_colour_map(session, label_map):
141 result = {}
142 if not label_map:
143 return result
144
145 for key, val in label_map.items():
146 file = File.get_by_id(session, file_id = key)
147 result[key] = file.colour
148 return result
149
150
151def annotation_export_core(

Callers 1

annotation_export_coreFunction · 0.85

Calls 1

get_by_idMethod · 0.45

Tested by

no test coverage detected