Skip to content

Commit

Permalink
Merge pull request #1097 from zahlman/patch-1
Browse files Browse the repository at this point in the history
Thanks
  • Loading branch information
vasole authored Dec 8, 2024
2 parents cb0b621 + 1fe763a commit 2d1d6b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/PyMca5/PyMcaGui/plotting/MaskScatterWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ def __init__(self, parent=None, backend=None, plugins=False, newplot=False,
self._selectionColors = numpy.zeros((len(self.colorList), 4), numpy.uint8)
self._alphaLevel = None
for i in range(len(self.colorList)):
self._selectionColors[i, 0] = eval("0x" + self.colorList[i][-2:])
self._selectionColors[i, 1] = eval("0x" + self.colorList[i][3:-2])
self._selectionColors[i, 2] = eval("0x" + self.colorList[i][1:3])
self._selectionColors[i, 0] = int(self.colorList[i][-2:], 16)
self._selectionColors[i, 1] = int(self.colorList[i][3:-2], 16)
self._selectionColors[i, 2] = int(self.colorList[i][1:3], 16)
self._selectionColors[i, 3] = 0xff
self._maxNRois = maxNRois
self._nRoi = 1
Expand Down

0 comments on commit 2d1d6b5

Please sign in to comment.