Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ __pycache__/
*.tif
napari_cellseg3d/_tests/res/*.csv
*.pth
*.db

# Distribution / packaging
.Python
Expand Down Expand Up @@ -97,3 +98,4 @@ venv/
/napari_cellseg3d/models/saved_weights/
/docs/res/logo/old_logo/
/reqs/

5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ A napari plugin for 3D cell segmentation: training, inference, and data review.

## Installation

Note : we recommend using conda to create a new environment for the plugin.

conda create --name python=3.8 napari-cellseg3d
conda activate napari-cellseg3d

You can install `napari-cellseg3d` via [pip]:

pip install napari-cellseg3d
Expand Down
28 changes: 13 additions & 15 deletions napari_cellseg3d/_tests/test_review.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,21 @@

def test_launch_review(make_napari_viewer):

view = make_napari_viewer()
widget = rev.Reviewer(view)
view = make_napari_viewer()
widget = rev.Reviewer(view)

# widget.filetype_choice.setCurrentIndex(0)
# widget.filetype_choice.setCurrentIndex(0)

im_path = os.path.dirname(os.path.realpath(__file__)) + "/res/test.tif"
im_path = os.path.dirname(os.path.realpath(__file__)) + "/res/test.tif"

widget.image_path = im_path
widget.label_path = im_path

print(widget.image_path)
print(widget.label_path)
print(widget.as_folder)
print(widget.filetype)
widget.run_review()
widget._viewer.close()

assert widget._viewer is not None
widget.image_path = im_path
widget.label_path = im_path

print(widget.image_path)
print(widget.label_path)
print(widget.as_folder)
print(widget.filetype)
widget.run_review()
widget._viewer.close()

assert widget._viewer is not None
Loading