Skip to content

Commit 5a6002d

Browse files
committed
fix typo
1 parent 77f7281 commit 5a6002d

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

plotpy/tools/image.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -525,16 +525,14 @@ def activate_cmap(
525525
cmap: Cmap to apply for currently selected images. If None, the tool's
526526
active colormap will be used. Defaults to None.
527527
"""
528-
# action = self.sender()
529-
# if action is not None:
530528
assert isinstance(cmap, QAction | str | CustomQwtLinearColormap | None)
531529
if isinstance(cmap, QAction):
532530
self._active_colormap = cmap.data() # type: ignore
533531
elif isinstance(cmap, str):
534532
self._active_colormap = get_cmap(cmap)
535533
elif isinstance(cmap, CustomQwtLinearColormap):
536534
self._active_colormap = cmap
537-
*
535+
538536
plot = self.get_active_plot()
539537
if self._active_colormap is not None and plot is not None:
540538
items = self.get_selected_images(plot)

0 commit comments

Comments
 (0)