Skip to content

Commit

Permalink
Merge pull request #29 from mapmanager/release-and-publish
Browse files Browse the repository at this point in the history
Release and publish
  • Loading branch information
VasudhaJha authored Apr 20, 2022
2 parents aba0167 + 3be4117 commit 706e6d3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
[![PyPI version](https://badge.fury.io/py/napari-layer-table.svg)](https://badge.fury.io/py/napari-layer-table)
[![Napari Hub](https://img.shields.io/badge/napari%20hub-available-mint.svg)](https://www.napari-hub.org/plugins/napari-layer-table)
[![napari hub](https://img.shields.io/endpoint?url=https://api.napari-hub.org/shields/napari-layer-table)](https://napari-hub.org/plugins/napari-layer-table)
[![Python](https://img.shields.io/badge/python-3.7|3.8|3.9|3.10-blue.svg)](https://www.python.org/downloads/release/python-3100/)
[![OS](https://img.shields.io/badge/OS-Linux|Windows|macOS-blue.svg)]()
[![tests](https://github.com/mapmanager/napari-layer-table/workflows/Tests/badge.svg)](https://github.com/mapmanager/napari-layer-table/actions)
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = napari-layer-table
version = 0.0.6
version = 0.0.7
author = Robert Cudmore
author_email = rhcudmore@ucdavis.edu
url = https://github.com/mapmanager/napari-layer-table
Expand Down
8 changes: 4 additions & 4 deletions src/napari_layer_table/_data_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ def data(self, index, role=QtCore.Qt.DisplayRole):
# try:
# _color = (np.array(color.getRgb()) / 255).astype(np.float32)
try:
r = face_color[0] * 255
g = face_color[1] * 255
b = face_color[2] * 255
alpha = face_color[3] * 255
r = int(face_color[0] * 255)
g = int(face_color[1] * 255)
b = int(face_color[2] * 255)
alpha = int(face_color[3] * 255)
theColor = QtCore.QVariant(QtGui.QColor(r, g, b, alpha))
return theColor
except (IndexError) as e:
Expand Down

0 comments on commit 706e6d3

Please sign in to comment.