From b205652221b5cf4ccd481b7941845578ef86209b Mon Sep 17 00:00:00 2001 From: Christopher Rhodes <christopher.rhodes@embl.de> Date: Wed, 22 May 2024 15:32:39 +0200 Subject: [PATCH] Pass model-associated request data in body, not query --- model_server/clients/ilastik_map_objects.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/model_server/clients/ilastik_map_objects.py b/model_server/clients/ilastik_map_objects.py index d04a1fbc..4fe51791 100644 --- a/model_server/clients/ilastik_map_objects.py +++ b/model_server/clients/ilastik_map_objects.py @@ -9,7 +9,7 @@ def main(request_func, in_abspath, params): :param params: pixel_classifier_path: (str) absolute path to ilastik project file that defines a pixel classifier object_classifier_path: (str) absolute path to ilastik project file that defines an object classifier - channel: (int) channel of the input image to process + channel (optional): (int) channel of the input image to process, use all channels if not specified :return: (str) absolute path where a new object map is written """ @@ -18,7 +18,7 @@ def main(request_func, in_abspath, params): px_ilp = params['pixel_classifier_path'] ob_ilp = params['object_classifier_path'] - channel = params['channel'] + channel = getattr(params, 'channel', None) mip = params.get('mip', False) # configure input and output paths -- GitLab