Skip to content

Commit

Permalink
Merge PR #348 | Match conda recipe and include logo in package_data
Browse files Browse the repository at this point in the history
  • Loading branch information
qin-yu authored Oct 7, 2024
2 parents 3337f65 + da661a5 commit 578bf90
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
# Create a Conda environment for testing
- name: Create PlantSeg Test Environment
run: |
conda create -n plant-seg -c local -c conda-forge pyqt plantseg pytest pytest-qt pytest-cov pytest-mock requests-mock
conda create -n plant-seg -c local -c conda-forge plantseg pytest pytest-qt pytest-cov pytest-mock requests-mock
# Run tests using pytest
- name: Run Tests with Pytest
Expand Down
9 changes: 5 additions & 4 deletions conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,21 @@ requirements:
- pip

run:
- python
- pytorch
- python >=3.9
- pytorch >=1.7.0
- tifffile
- h5py
- zarr
- vigra
- python-elf
- python-graphviz
- scikit-image
- bioimageio.core>=0.6.5
- bioimageio.core >=0.6.5
- napari
- pyqt
- requests
- pyyaml
- pydantic>2
- pydantic >2

test:
imports:
Expand Down
17 changes: 3 additions & 14 deletions docs/chapters/getting_started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ PlantSeg can be installed directly by executing in the terminal (or PowerShell o
mamba create -n plant-seg -c pytorch -c nvidia -c conda-forge pytorch cpuonly plant-seg --no-channel-priority
```


=== "Windows"

* NVIDIA GPU version, CUDA=12.x
Expand All @@ -82,7 +81,7 @@ PlantSeg can be installed directly by executing in the terminal (or PowerShell o
* Apple silicon version

```bash
mamba create -n plant-seg -c pytorch -c conda-forge python=3.11 pytorch::pytorch pyqt plant-seg --no-channel-priority
mamba create -n plant-seg -c pytorch -c conda-forge python=3.11 pytorch::pytorch plant-seg --no-channel-priority
```

If you used older versions of PlantSeg, please delete the old config files in `~/.plantseg_models/configs/` after installing new PlantSeg.
Expand All @@ -93,24 +92,14 @@ Please refer to the [PyTorch](https://pytorch.org/get-started/locally/) website

## Optional dependencies

If you want to use the headless mode of PlantSeg, you need to install `dask[distributed]`:

```bash
conda activate plant-seg
mamba install dask distributed
```

Some types of compressed tiff files require an additional package to be load correctly (e.g.: Zlib, ZSTD, LZMA, ...).
To run PlantSeg on those stacks, you need to install `imagecodecs`.
In the terminal:
Certain compressed TIFF files (e.g., Zlib, ZSTD, LZMA formats) require additional codecs to be processed correctly by PlantSeg. To handle such files, install the `imagecodecs` package:

```bash
conda activate plant-seg
pip install imagecodecs
```

Experimental support for SimpleITK watershed segmentation has been added to PlantSeg version 1.1.8.
These features can be used only after installing the SimpleITK package:
If you plan to use SimpleITK-based watershed segmentation, you will need to install `SimpleITK` as an additional dependency:

```bash
conda activate plant-seg
Expand Down
3 changes: 1 addition & 2 deletions environment-elife.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: plant_seg
name: plant-seg-elife
channels:
- pytorch
- cpape
Expand Down Expand Up @@ -136,4 +136,3 @@ dependencies:
- werkzeug==0.16.0
- wrapt==1.11.2
prefix: /home/lcerrone_local/miniconda3/envs/plant_seg

1 change: 1 addition & 0 deletions environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ dependencies:
- scikit-image
- bioimageio.core>=0.6.5
# GUI
- pyqt
- napari
# Other
- requests
Expand Down
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
version=__version__, # noqa: F821
packages=find_packages(exclude=["tests", "evaluation"]),
include_package_data=True,
package_data={
'plantseg': ['resources/logo_white.png'],
},
description='PlantSeg is a tool for cell instance aware segmentation in densely packed 3D volumetric images.',
author='Lorenzo Cerrone, Adrian Wolny',
url='https://github.com/kreshuklab/plant-seg',
Expand Down

0 comments on commit 578bf90

Please sign in to comment.