We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f523c2 commit 32aeebfCopy full SHA for 32aeebf
labelbox/schema/ontology.py
@@ -191,7 +191,7 @@ class Type(Enum):
191
tool: Type
192
name: str
193
required: bool = False
194
- color: str = "#000000"
+ color: str = None
195
classifications: List[Classification] = field(default_factory=list)
196
schema_id: Optional[str] = None
197
feature_schema_id: Optional[str] = None
@@ -331,7 +331,7 @@ def _update_colors(self):
331
hsv_color = (index * 1 / num_tools, 1, 1)
332
rgb_color = tuple(
333
int(255 * x) for x in colorsys.hsv_to_rgb(*hsv_color))
334
- if self.tools[index].color == "#000000":
+ if self.tools[index].color is None:
335
self.tools[index].color = '#%02x%02x%02x' % rgb_color
336
337
@classmethod
0 commit comments