Skip to content

Commit

Permalink
Avoid np.int in color options display
Browse files Browse the repository at this point in the history
  • Loading branch information
paulromano committed Oct 23, 2024
1 parent db6f07d commit 5abe746
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openmc_plotter/plotmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -1271,7 +1271,8 @@ def data(self, index, role=Qt.DisplayRole):
elif column == COLOR:
return '' if domain.color is not None else '+'
elif column == COLORLABEL:
return str(tuple(domain.color)) if domain.color is not None else '--'
return (str(tuple(int(x) for x in domain.color))
if domain.color is not None else '--')
elif column == MASK:
return None
elif column == HIGHLIGHT:
Expand Down

0 comments on commit 5abe746

Please sign in to comment.