diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 6a05e36..8be76a2 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -31,18 +31,9 @@ jobs: with: pixi-version: v0.44.0 - - name: re-create manifest - run: pixi run -e dev python src/ilastik_tasks/dev/create_manifest.py - - name: Check if manifest has changed - run: | - if [ -n "$(git diff --exit-code ./src/ilastik_tasks/__FRACTAL_MANIFEST__.json)" ]; then - echo "__FRACTAL_MANIFEST__.json has changed. Please run 'python src/ilastik_tasks/dev/create_manifest.py' and commit the changes." - exit 1 - else - echo "__FRACTAL_MANIFEST__.json has not changed." - fi - + run: pixi run fractal-manifest check --package ilastik-tasks + - name: Run tests run: pixi run -e dev pytest diff --git a/pyproject.toml b/pyproject.toml index 382698d..74b669f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -117,4 +117,5 @@ pydantic = "==2.8.2" docstring_parser = "==0.15" ilastik-core = ">=1.4.2a1,<2" vigra = ">=1.12.1,<2" -fractal-tasks-core = "==1.4.3" +fractal-tasks-core = "==1.5.3" +fractal-task-tools = "==0.0.12" diff --git a/src/ilastik_tasks/__FRACTAL_MANIFEST__.json b/src/ilastik_tasks/__FRACTAL_MANIFEST__.json index 9f8f0d2..5513a42 100644 --- a/src/ilastik_tasks/__FRACTAL_MANIFEST__.json +++ b/src/ilastik_tasks/__FRACTAL_MANIFEST__.json @@ -8,6 +8,7 @@ "Pixel Classifier" ], "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.", + "type": "parallel", "executable_parallel": "ilastik_pixel_classification_segmentation.py", "meta_parallel": { "cpus_per_task": 8, diff --git a/src/ilastik_tasks/dev/create_manifest.py b/src/ilastik_tasks/dev/create_manifest.py deleted file mode 100644 index 9b15f5e..0000000 --- a/src/ilastik_tasks/dev/create_manifest.py +++ /dev/null @@ -1,9 +0,0 @@ -"""Generate JSON schemas for task arguments.""" - -from fractal_tasks_core.dev.create_manifest import create_manifest - -if __name__ == "__main__": - PACKAGE = "ilastik_tasks" - AUTHORS = "Lorenzo Cerrone" - docs_link = "https://github.com/fractal-analytics-platform/fractal-ilastik-tasks" - create_manifest(package=PACKAGE, authors=AUTHORS, docs_link=docs_link) diff --git a/src/ilastik_tasks/dev/task_list.py b/src/ilastik_tasks/dev/task_list.py index 7a4a76c..be5a9f1 100644 --- a/src/ilastik_tasks/dev/task_list.py +++ b/src/ilastik_tasks/dev/task_list.py @@ -1,6 +1,9 @@ """Contains the list of tasks available to fractal.""" -from fractal_tasks_core.dev.task_models import ParallelTask +from fractal_task_tools.task_models import ParallelTask + +AUTHORS = "Lorenzo Cerrone" +DOCS_LINK = "https://github.com/fractal-analytics-platform/fractal-ilastik-tasks" TASK_LIST = [ ParallelTask( diff --git a/src/ilastik_tasks/ilastik_pixel_classification_segmentation.py b/src/ilastik_tasks/ilastik_pixel_classification_segmentation.py index 924f6e0..8e67980 100644 --- a/src/ilastik_tasks/ilastik_pixel_classification_segmentation.py +++ b/src/ilastik_tasks/ilastik_pixel_classification_segmentation.py @@ -576,7 +576,7 @@ def check_ilastik_model_channels(shell) -> int: if __name__ == "__main__": - from fractal_tasks_core.tasks._utils import run_fractal_task + from fractal_task_tools.task_wrapper import run_fractal_task run_fractal_task( task_function=ilastik_pixel_classification_segmentation,