Skip to content

Commit

Permalink
black formatted files
Browse files Browse the repository at this point in the history
  • Loading branch information
romer8 committed Apr 5, 2024
1 parent 72138ab commit 0877bfb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tethys_layouts/mixins/map_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -998,14 +998,14 @@ def generate_custom_color_ramp_divisions(
divisions[f"{prefix}{i}"] = f"{(m * i + b):.{value_precision}f}"

if color_ramp in cls.COLOR_RAMPS.keys():
divisions[f"{color_prefix}{i}"] = (
f"{cls.COLOR_RAMPS[color_ramp][(i - first_division) % len(cls.COLOR_RAMPS[color_ramp])]}"
)
divisions[
f"{color_prefix}{i}"
] = f"{cls.COLOR_RAMPS[color_ramp][(i - first_division) % len(cls.COLOR_RAMPS[color_ramp])]}"
else:
# use default color ramp
divisions[f"{color_prefix}{i}"] = (
f"{cls.COLOR_RAMPS['Default'][(i - first_division) % len(cls.COLOR_RAMPS['Default'])]}"
)
divisions[
f"{color_prefix}{i}"
] = f"{cls.COLOR_RAMPS['Default'][(i - first_division) % len(cls.COLOR_RAMPS['Default'])]}"
if no_data_value is not None:
divisions["val_no_data"] = no_data_value
return divisions

0 comments on commit 0877bfb

Please sign in to comment.