Skip to content

Commit 6db3014

Browse files
committed
Disable Wnet test + move metadata to pyproject.toml
- Remove Wnet test and exclude training file from coverage - Update display name of plugin in napari - Move metadata to pyproject.toml instead of setup.cfg
1 parent e27c631 commit 6db3014

File tree

6 files changed

+51
-52
lines changed

6 files changed

+51
-52
lines changed

.coveragerc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ exclude_lines =
44

55
[run]
66
omit =
7-
napari_cellseg3d/setup.py
7+
napari_cellseg3d/setup.py, napari_cellseg3d/code_models/models/wnet/train_wnet.py

docs/res/guides/inference_module_guide.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,5 +144,3 @@ Source code
144144
* :doc:`../code/plugin_model_inference`
145145
* :doc:`../code/model_framework`
146146
* :doc:`../code/workers`
147-
148-
Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,25 @@
1-
from pathlib import Path
2-
from napari_cellseg3d.code_models.models.wnet import train_wnet as t
1+
#######################################################
2+
# Disabled as it takes too much memory for GH actions #
3+
#######################################################
34

4-
def test_wnet_training():
5-
config = t.Config()
65

7-
config.batch_size = 1
8-
config.num_epochs = 1
9-
10-
config.train_volume_directory = str(Path(__file__).resolve().parent / "res/wnet_test")
11-
config.eval_volume_directory = config.train_volume_directory
12-
config.save_every = 1
13-
config.val_interval = 2 # skip validation
14-
config.save_model_path = config.train_volume_directory + "/test.pth"
15-
16-
ncuts_loss, rec_loss, model = t.train(train_config=config)
17-
18-
assert ncuts_loss is not None
19-
assert rec_loss is not None
20-
assert model is not None
6+
# from pathlib import Path
7+
# from napari_cellseg3d.code_models.models.wnet import train_wnet as t
8+
#
9+
# def test_wnet_training():
10+
# config = t.Config()
11+
#
12+
# config.batch_size = 1
13+
# config.num_epochs = 1
14+
#
15+
# config.train_volume_directory = str(Path(__file__).resolve().parent / "res/wnet_test")
16+
# config.eval_volume_directory = config.train_volume_directory
17+
# config.save_every = 1
18+
# config.val_interval = 2 # skip validation
19+
# config.save_model_path = config.train_volume_directory + "/test.pth"
20+
#
21+
# ncuts_loss, rec_loss, model = t.train(train_config=config)
22+
#
23+
# assert ncuts_loss is not None
24+
# assert rec_loss is not None
25+
# assert model is not None

napari_cellseg3d/napari.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: napari-cellseg3d
2-
display_name: Cell Segmentation Annotator
2+
display_name: CellSeg3D
33
schema_version: 0.0.4
44

55
contributions:

pyproject.toml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,29 @@
11
[project]
22
name = "napari_cellseg3d"
3-
version = "0.0.3rc1"
43
authors = [
54
{name = "Cyril Achard", email = "[email protected]"},
65
{name = "Maxime Vidal", email = "[email protected]"},
76
{name = "Mackenzie Mathis", email = "[email protected]"},
87
]
8+
readme = "README.md"
9+
description = "Plugin for cell segmentation in 3D"
10+
classifiers = [
11+
"Development Status :: 4 - Beta",
12+
"Intended Audience :: Science/Research",
13+
"Framework :: napari",
14+
"Topic :: Software Development :: Testing",
15+
"Programming Language :: Python",
16+
"Programming Language :: Python :: 3",
17+
"Programming Language :: Python :: 3.8",
18+
"Programming Language :: Python :: 3.9",
19+
"Programming Language :: Python :: 3.10",
20+
"Operating System :: OS Independent",
21+
"License :: OSI Approved :: MIT License",
22+
"Topic :: Scientific/Engineering :: Artificial Intelligence",
23+
"Topic :: Scientific/Engineering :: Image Processing",
24+
"Topic :: Scientific/Engineering :: Visualization",
25+
]
26+
license = {text = "MIT"}
927
requires-python = ">=3.8"
1028
dependencies = [
1129
"numpy",
@@ -30,6 +48,12 @@ dependencies = [
3048
"matplotlib",
3149
"vispy>=0.9.6",
3250
]
51+
dynamic = ["version"]
52+
53+
[project.urls]
54+
Homepage = "https://github.com/AdaptiveMotorControlLab/CellSeg3d"
55+
Documentation = "https://adaptivemotorcontrollab.github.io/cellseg3d-docs/res/welcome.html"
56+
Issues = "https://github.com/AdaptiveMotorControlLab/CellSeg3d/issues"
3357

3458
[build-system]
3559
requires = ["setuptools", "wheel"]

setup.cfg

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,6 @@
11
[metadata]
2-
name = napari-cellseg3d
2+
name = napari_cellseg3d
33
version = 0.0.3rc1
4-
author = Cyril Achard, Maxime Vidal, Jessy Lauer, Mackenzie Mathis
5-
6-
7-
license = MIT
8-
description = plugin for cell segmentation
9-
long_description = file: README.md
10-
long_description_content_type = text/markdown
11-
classifiers =
12-
Development Status :: 2 - Pre-Alpha
13-
Intended Audience :: Science/Research
14-
Framework :: napari
15-
Topic :: Software Development :: Testing
16-
Programming Language :: Python
17-
Programming Language :: Python :: 3
18-
Programming Language :: Python :: 3.8
19-
Programming Language :: Python :: 3.9
20-
Programming Language :: Python :: 3.10
21-
Operating System :: OS Independent
22-
License :: OSI Approved :: MIT License
23-
Topic :: Scientific/Engineering :: Artificial Intelligence
24-
Topic :: Scientific/Engineering :: Image Processing
25-
Topic :: Scientific/Engineering :: Visualization
26-
27-
url = https://github.com/AdaptiveMotorControlLab/CellSeg3d
28-
project_urls =
29-
Bug Tracker = https://github.com/AdaptiveMotorControlLab/CellSeg3d/issues
30-
Documentation = https://adaptivemotorcontrollab.github.io/cellseg3d-docs/res/welcome.html
31-
Source Code = https://github.com/AdaptiveMotorControlLab/CellSeg3d
324

335
[options]
346
packages = find:

0 commit comments

Comments
 (0)