Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lanzhenw committed Sep 5, 2024
1 parent 07ed260 commit aae922b
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions fiftyone/core/odm/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,13 +416,6 @@ def _validate_single_colorscale(self, scale):
f"Each colorscale entry must be a dict. Invalid entry: {scale}"
)

path = scale.get("path")
if path is None or not isinstance(path, str):
raise ValueError(
"Each colorscale entry must have a 'path' (string)."
f"Invalid entry: {scale}"
)

name = scale.get("name")
color_list = scale.get("list")

Expand All @@ -432,12 +425,6 @@ def _validate_single_colorscale(self, scale):
f"Invalid entry: {scale}"
)

if name is not None and color_list is not None:
print(
"Note: Both 'name' and 'list' are provided."
f"Using the named colorscale '{name}'."
)

if name is not None and not isinstance(name, str):
raise ValueError(
"Invalid colorscale name."
Expand Down

0 comments on commit aae922b

Please sign in to comment.