Skip to content

Commit a839da4

Browse files
update template
1 parent 8d86d2b commit a839da4

File tree

7 files changed

+21
-21
lines changed

7 files changed

+21
-21
lines changed

create_env_script.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ENVPREFIX="NULL"
66

77
# Do NOT change the following lines
88
ENVNAME=ilastik-tasks-$VERSION
9-
PYTHON="python=3.9"
9+
PYTHON="python=3.10"
1010

1111
if [ "$ENVPREFIX" == "NULL" ]; then
1212
LOCATION="--name $ENVNAME"
@@ -19,7 +19,7 @@ $COMMMAND run $COMMMAND create $LOCATION \
1919
--override-channels \
2020
-c pytorch \
2121
-c ilastik-forge \
22-
-c conda-forge $PYTHON ilastik vigra \
22+
-c conda-forge $PYTHON ilastik-core vigra \
2323
--no-channel-priority --yes
2424

2525
echo "Installing ilastik-tasks version $VERSION"

pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,15 @@ license = { text = "BSD-3-Clause" }
2323
authors = [{ name = "Lorenzo Cerrone", email = "[email protected]" }]
2424

2525
# Required Python version and dependencies
26-
requires-python = ">=3.9"
27-
dependencies = ["fractal-tasks-core == 1.3.3", "scikit-image", "numpy < 2"]
26+
requires-python = ">=3.10"
27+
dependencies = ["fractal-tasks-core == 1.4.3"]
2828

2929
# Optional dependencies (e.g. for `pip install -e ".[dev]"`, see
3030
# https://peps.python.org/pep-0621/#dependencies-optional-dependencies)
3131
[project.optional-dependencies]
3232
dev = [
3333
"devtools",
34+
"pooch",
3435
"hatch",
3536
"pytest",
3637
"requests",
@@ -42,7 +43,7 @@ dev = [
4243
# https://docs.astral.sh/ruff
4344
[tool.ruff]
4445
line-length = 88
45-
target-version = "py39"
46+
target-version = "py311"
4647
src = ["src"]
4748

4849
# https://docs.astral.sh/ruff/rules

src/ilastik_tasks/__FRACTAL_MANIFEST__.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"tags": [
88
"Pixel Classifier"
99
],
10+
"docs_info": "### Purpose\n\nThis task is used to apply a ilastik pixel classifier to an image.\n\n### Outputs\n\n- The `ilastik_pixel_classification_segmentation`: Generates a new label image named `output_label_name`.\n\n### Limitations\n\n- The task can only be used with single and dual channels pixel classifiers models.",
1011
"executable_parallel": "ilastik_pixel_classification_segmentation.py",
1112
"meta_parallel": {
1213
"cpus_per_task": 8,
@@ -119,7 +120,7 @@
119120
"type": "object",
120121
"title": "IlastikPixelClassificationSegmentation"
121122
},
122-
"docs_info": "## ilastik_pixel_classification_segmentation\nRun Ilastik Pixel Classification on a Zarr image.\n"
123+
"docs_link": "https://github.com/fractal-analytics-platform/fractal-ilastik-tasks"
123124
}
124125
],
125126
"has_args_schemas": true,

src/ilastik_tasks/dev/create_manifest.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,4 @@
66
PACKAGE = "ilastik_tasks"
77
AUTHORS = "Lorenzo Cerrone"
88
docs_link = "https://github.com/fractal-analytics-platform/fractal-ilastik-tasks"
9-
if docs_link:
10-
create_manifest(package=PACKAGE, authors=AUTHORS, docs_link=docs_link)
11-
else:
12-
create_manifest(package=PACKAGE, authors=AUTHORS)
9+
create_manifest(package=PACKAGE, authors=AUTHORS, docs_link=docs_link)
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
### Purpose
2+
3+
This task is used to apply a ilastik pixel classifier to an image.
4+
5+
### Outputs
6+
7+
- The `ilastik_pixel_classification_segmentation`: Generates a new label image named `output_label_name`.
8+
9+
### Limitations
10+
11+
- The task can only be used with single and dual channels pixel classifiers models.

src/ilastik_tasks/dev/docs_info/thresholding_task.md

Lines changed: 0 additions & 10 deletions
This file was deleted.

src/ilastik_tasks/dev/task_list.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
tags=[
1212
"Pixel Classifier",
1313
],
14-
docs_info="file:docs_info/thresholding_task.md"
14+
docs_info="file:docs_info/ilastik_pixel_classifier.md"
1515
),
1616
]

0 commit comments

Comments
 (0)