Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add label_to_binary tool #114

Merged
merged 2 commits into from
Mar 13, 2024
Merged

Conversation

kostrykin
Copy link
Member

For the contributor:


Add label_to_binary tool (Convert label map to binary image), which is the counterpart of the binary2labelimage tool (Convert binary image to label map).

Squashed commit of the following:

commit 8b2f090
Author: Leonid Kostrykin <[email protected]>
Date:   Wed Mar 13 13:39:20 2024 +0000

    Fix

commit baf90b1
Author: Leonid Kostrykin <[email protected]>
Date:   Wed Mar 13 13:37:29 2024 +0000

    Fix

commit 4fd1acc
Author: Leonid Kostrykin <[email protected]>
Date:   Wed Mar 13 13:29:39 2024 +0000

    Fix

commit 58987c4
Author: Leonid Kostrykin <[email protected]>
Date:   Wed Mar 13 13:20:27 2024 +0000

    Fix requirements

commit 97e2339
Author: Leonid Kostrykin <[email protected]>
Date:   Wed Mar 13 13:14:34 2024 +0000

    Add output

commit 43a9aed
Author: Leonid Kostrykin <[email protected]>
Date:   Wed Mar 13 13:11:02 2024 +0000

    Fix versions

commit 601e181
Author: Leonid Kostrykin <[email protected]>
Date:   Wed Mar 13 13:07:47 2024 +0000

    Fix

commit e1616e4
Author: Leonid Kostrykin <[email protected]>
Date:   Wed Mar 13 13:04:33 2024 +0000

    Fix

commit c0d79a6
Author: Leonid Kostrykin <[email protected]>
Date:   Wed Mar 13 12:54:38 2024 +0000

    Add `label_to_binary` tool
@kostrykin
Copy link
Member Author

@bgruening Any idea what this error could be caused by?
https://github.com/BMCV/galaxy-image-analysis/actions/runs/8265712085/attempts/1#summary-22612634629

Job in error state.. tool_id: label_to_binary, exit_code: 1, stderr: Traceback (most recent call last):
File "/home/runner/work/galaxy-image-analysis/galaxy-image-analysis/tools/label_to_binary/label_to_binary.py", line 4, in
import skimage.io
File "/usr/local/lib/python3.9/site-packages/skimage/init.py", line 135, in
from .data import data_dir
File "/usr/local/lib/python3.9/site-packages/skimage/data/init.py", line 270, in
_init_pooch()
File "/usr/local/lib/python3.9/site-packages/skimage/data/init.py", line 255, in _init_pooch
os.makedirs(data_dir, exist_ok=True)
File "/usr/local/lib/python3.9/os.py", line 215, in makedirs
makedirs(head, exist_ok=exist_ok)
File "/usr/local/lib/python3.9/os.py", line 215, in makedirs
makedirs(head, exist_ok=exist_ok)
File "/usr/local/lib/python3.9/os.py", line 215, in makedirs
makedirs(head, exist_ok=exist_ok)
File "/usr/local/lib/python3.9/os.py", line 225, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/home/runner/.cache'

@bgruening
Copy link
Collaborator

No profile version ;)

@bgruening
Copy link
Collaborator

With a later profile we are providing a HOME dir that is for sure writeable per tool.

@bgruening bgruening merged commit 0a64a49 into BMCV:master Mar 13, 2024
10 checks passed
@kostrykin
Copy link
Member Author

Oh, my bad! Thanks for clarification! Will remember that.

@kostrykin kostrykin deleted the label_to_binary/upstream branch September 24, 2024 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants