From d127e1137f1352f8c3180096e3cf7a5b4ce37c23 Mon Sep 17 00:00:00 2001 From: jluethi Date: Fri, 31 May 2024 09:28:01 +0200 Subject: [PATCH] Rename task --- .../{md_create_ome_zarr.py => convert_ome_zarr.py} | 4 ++-- src/fractal_faim_ipa/dev/task_list.py | 4 ++-- tests/test_converter_task.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) rename src/fractal_faim_ipa/{md_create_ome_zarr.py => convert_ome_zarr.py} (99%) diff --git a/src/fractal_faim_ipa/md_create_ome_zarr.py b/src/fractal_faim_ipa/convert_ome_zarr.py similarity index 99% rename from src/fractal_faim_ipa/md_create_ome_zarr.py rename to src/fractal_faim_ipa/convert_ome_zarr.py index ded049f..0bf13a1 100644 --- a/src/fractal_faim_ipa/md_create_ome_zarr.py +++ b/src/fractal_faim_ipa/convert_ome_zarr.py @@ -18,7 +18,7 @@ @validate_arguments -def md_create_ome_zarr( +def convert_ome_zarr( *, zarr_urls: list[str], zarr_dir: str, @@ -179,6 +179,6 @@ def md_create_ome_zarr( from fractal_tasks_core.tasks._utils import run_fractal_task run_fractal_task( - task_function=md_create_ome_zarr, + task_function=convert_ome_zarr, logger_name=logger.name, ) diff --git a/src/fractal_faim_ipa/dev/task_list.py b/src/fractal_faim_ipa/dev/task_list.py index 64485b4..a24083e 100644 --- a/src/fractal_faim_ipa/dev/task_list.py +++ b/src/fractal_faim_ipa/dev/task_list.py @@ -4,8 +4,8 @@ TASK_LIST = [ NonParallelTask( - name="Convert MD to OME-Zarr", - executable="md_create_ome_zarr.py", + name="FAIM IPA OME-Zarr Converter", + executable="convert_ome_zarr.py", meta={"cpus_per_task": 8, "mem": 32000}, ), ] diff --git a/tests/test_converter_task.py b/tests/test_converter_task.py index 4e8d852..b6cfffc 100644 --- a/tests/test_converter_task.py +++ b/tests/test_converter_task.py @@ -6,7 +6,7 @@ from pathlib import Path import anndata as ad -from fractal_faim_ipa.md_create_ome_zarr import md_create_ome_zarr +from fractal_faim_ipa.convert_ome_zarr import convert_ome_zarr def test_ome_zarr_conversion(): @@ -24,7 +24,7 @@ def test_ome_zarr_conversion(): output_name = "OME-Zarr" - image_list_update = md_create_ome_zarr( + image_list_update = convert_ome_zarr( zarr_urls=[], zarr_dir=str(zarr_root), image_dir=image_dir,