Skip to content

Commit

Permalink
update installation and viewer to include napari-sam plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
christinab12 committed May 2, 2024
1 parent 6bb5e6f commit 003671a
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 47 deletions.
2 changes: 2 additions & 0 deletions src/client/dcp_client/gui/napari_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ def __init__(self, app: Application) -> None:

# Set the viewer
self.viewer = napari.Viewer(show=False)
self.viewer.window.add_plugin_dock_widget("napari-sam")

self.viewer.add_image(img, name=get_path_stem(self.app.cur_selected_img))
for seg_file in self.seg_files:
self.viewer.add_labels(
Expand Down
46 changes: 1 addition & 45 deletions src/client/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,47 +1,3 @@
[build-system]
requires = ["setuptools>=61.0"]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"

[tool.setuptools]
packages = ['dcp_client']

[tool.setuptools.dynamic]
dependencies = {file = ["requirements.txt"]}

[project]
name = "data-centric-platform-client"
version = "0.1"
requires-python = ">=3.9"
description = "The client of the data centric platform for microscopy image segmentation"
keywords = []
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
]
readme = "README.md"
dynamic = ["dependencies"]
authors = [
{name="Christina Bukas", email="christina.bukas@helmholtz-munich.de"},
{name="Helena Pelin", email="helena.pelin@helmholtz-munich.de"},
{name="Mariia Koren", email="mariia.koren@helmholtz-munich.de"},
{name="Marie Piraud", email="marie.piraud@helmholtz-munich.de"},
]
maintainers = [
{name="Christina Bukas", email="christina.bukas@helmholtz-munich.de"},
{name="Helena Pelin", email="helena.pelin@helmholtz-munich.de"}
]

[project.optional-dependencies]
dev = [
"pytest>=7.4.3",
"pytest-qt>=4.2.0",
"sphinx",
"sphinx-rtd-theme"
]

[project.urls]
repository = "https://github.com/HelmholtzAI-Consultants-Munich/data-centric-platform"
documentation = "https://readthedocs.org/projects/data-centric-platform"

[project.scripts]
dcp-client = "dcp_client.main:main"
2 changes: 0 additions & 2 deletions src/client/requirements.txt

This file was deleted.

51 changes: 51 additions & 0 deletions src/client/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
from setuptools import setup, find_packages

setup(
name="data-centric-platform-client",
version="0.1",
description="The client of the data centric platform for microscopy image segmentation",
author=["Christina Bukas",
"Helena Pelin",
"Mariia Koren",
"Marie Piraud"],
author_email= ["christina.bukas@helmholtz-munich.de",
"helena.pelin@helmholtz-munich.de",
"mariia.koren@helmholtz-munich.de",
"marie.piraud@helmholtz-munich.de"],
url="https://github.com/HelmholtzAI-Consultants-Munich/data-centric-platform",
packages=find_packages(),
install_requires=[
"napari[pyqt5]>=0.4.17",
"segment-anything @ git+https://github.com/facebookresearch/segment-anything.git@main",
"torch",
"torchvision",
"napari-sam @ git+https://github.com/christinab12/napari-sam.git@main",
"bentoml[grpc]>=1.2.5",
],
extras_require={
"dev": [
"pytest>=7.4.3",
"pytest-qt>=4.2.0",
"sphinx",
"sphinx-rtd-theme",
]
},
entry_points={
"console_scripts": [
"dcp-client=dcp_client.main:main",
]
},
python_requires=">=3.9",
keywords=[],
classifiers=[
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
],
long_description=open("README.md").read(),
maintainer=["Christina Bukas", "Helena Pelin"],
maintainer_email=["christina.bukas@helmholtz-munich.de", "helena.pelin@helmholtz-munich.de"],
project_urls={
"Repository": "https://github.com/HelmholtzAI-Consultants-Munich/data-centric-platform",
"Documentation": "https://readthedocs.org/projects/data-centric-platform",
}
)

0 comments on commit 003671a

Please sign in to comment.