Skip to content

Commit

Permalink
pylint advisories
Browse files Browse the repository at this point in the history
  • Loading branch information
semuadmin committed Oct 8, 2024
1 parent 8e51add commit d27206c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"python.testing.pytestEnabled": true,
"python.testing.unittestEnabled": false,
"python.formatting.provider": "black",
"python.defaultInterpreterPath": "python3",
"python.defaultInterpreterPath": "/Library/Frameworks/Python.framework/Versions/3.12/bin/python3.12",
"editor.formatOnSave": true,
"modulename": "pymandel",
"distname": "pymandel",
Expand Down
2 changes: 2 additions & 0 deletions src/pymandel/mandelbrot.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ def sel_colormap(i, za, radius, shift, theme):
Select from indexed colormap theme
"""

r = g = b = 0
if theme == "Colorcet_CET_CBC1":
r, g, b = get_colormap(i, za, radius, shift, cet_CBC1)
elif theme == "Colorcet_CET_CBTC1":
Expand Down Expand Up @@ -349,6 +350,7 @@ def hsv_to_rgb(h, s, v):
Convert HSV values (in range 0-1) to RGB (in range 0-255).
"""

r = g = b = 0
v = int(v * 255)
if s == 0.0:
return v, v, v
Expand Down

0 comments on commit d27206c

Please sign in to comment.