Skip to content

Commit

Permalink
Fix codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
rosteen committed Nov 9, 2023
1 parent 292f9ec commit 7dd8794
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,7 @@ def apply_RGB_presets(self):
# Sample along a colormap if we have too many layers
if len(visible_layers) > 5:
cmap = matplotlib.colormaps['gist_rainbow'].resampled(n_visible)

Check warning on line 642 in jdaviz/configs/default/plugins/plot_options/plot_options.py

View check run for this annotation

Codecov / codecov/patch

jdaviz/configs/default/plugins/plot_options/plot_options.py#L641-L642

Added lines #L641 - L642 were not covered by tests

def _rgb_to_hex(rgb):
rgb = [int(x * 255) for x in rgb]
return f"#{rgb[0]:02x}{rgb[1]:02x}{rgb[2]:02x}{rgb[3]:02x}"

Check warning on line 646 in jdaviz/configs/default/plugins/plot_options/plot_options.py

View check run for this annotation

Codecov / codecov/patch

jdaviz/configs/default/plugins/plot_options/plot_options.py#L644-L646

Added lines #L644 - L646 were not covered by tests
Expand Down

0 comments on commit 7dd8794

Please sign in to comment.