Skip to content

Commit 57b0353

Browse files
authored
Add pyClEsperanto troubleshooting (#90)
* Update pre-commit * Update installation_guide.rst * Remove deprecated argument (review test)
1 parent 2690f57 commit 57b0353

File tree

3 files changed

+27
-6
lines changed

3 files changed

+27
-6
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.4.0
3+
rev: v4.6.0
44
hooks:
55
# - id: check-docstring-first
66
- id: end-of-file-fixer
77
- id: trailing-whitespace
88
- id: check-yaml
9-
- id: check-added-large-files
10-
args: [--maxkb=5000]
119
- id: check-toml
10+
# - id: check-added-large-files
11+
# args: [--maxkb=5000]
1212
# - repo: https://github.com/pycqa/isort
1313
# rev: 5.12.0
1414
# hooks:
1515
# - id: isort
1616
# args: ["--profile", "black", --line-length=79]
1717
- repo: https://github.com/charliermarsh/ruff-pre-commit
1818
# Ruff version.
19-
rev: 'v0.0.262'
19+
rev: 'v0.5.6'
2020
hooks:
2121
- id: ruff
2222
args: [ --fix, --exit-non-zero-on-fix ]
2323
- repo: https://github.com/psf/black
24-
rev: 23.3.0
24+
rev: 24.8.0
2525
hooks:
2626
- id: black
2727
args: [--line-length=79]

docs/source/guides/installation_guide.rst

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,27 @@ In order to update the environment, navigate to the CellSeg3D folder and run:
136136
conda deactivate
137137
conda env update -f conda/napari_cellseg3d_ARM64.yml
138138
139+
140+
Troubleshoting
141+
------------------------------
142+
143+
pyClesperanto
144+
_____________________
145+
146+
If you encounter the following error : *clGetPlatformIDs failed: PLATFORM_NOT_FOUND_KHR* :
147+
148+
Please install `clinfo <https://github.com/Oblomov/clinfo>`_ and check if your OpenCL platform is available.
149+
150+
If not, please install the OpenCL driver for your hardware.
151+
152+
`[Source] <https://forum.image.sc/t/pyclesperanto-prototype-doesnt-work/45724>`_
153+
154+
155+
---
156+
157+
158+
**Please help us make this section better by reporting any issues you encounter during installation.**
159+
139160
Optional requirements
140161
------------------------------
141162

napari_cellseg3d/code_plugins/plugin_review.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ def launch_review(self):
276276
scale=self.config.zoom_factor,
277277
) # anything bigger than 255 will get mapped to 255... they did it like this because it must have rgb images
278278
viewer.add_labels(
279-
base_label, name="labels", seed=0.6, scale=self.config.zoom_factor
279+
base_label, name="labels", scale=self.config.zoom_factor
280280
)
281281

282282
@magicgui(

0 commit comments

Comments
 (0)