diff --git a/clients/examples/run_simple_ilastik.py b/clients/examples/run_simple_ilastik.py index 123874bfeb7dc9b9dc79f52acf5f05d25df25432..b9c99fadc7b3a9af55f4f7ab72840b8f589e81d8 100644 --- a/clients/examples/run_simple_ilastik.py +++ b/clients/examples/run_simple_ilastik.py @@ -10,8 +10,8 @@ if __name__ == '__main__': img_abspath = 'C:\\Users\\rhodes\\projects\\proj0004-marine-photoactivation\\data\\exp0021\\B2\\20230320-153317\\Selection\\Selection--W0000--P0001-T0001.czi' params = { - 'pixel_classifier_path': 'c:/Users/rhodes/projects/proj0011-plankton-seg/exp0019/px-02.ilp', - 'object_classifier_path': 'c:/Users/rhodes/projects/proj0011-plankton-seg/exp0019/obj-06.ilp', + 'pixel_classifier_path': 'c:/Users/rhodes/projects/proj0011-plankton-seg/exp0019/px-03.ilp', + 'object_classifier_path': 'c:/Users/rhodes/projects/proj0011-plankton-seg/exp0019/obj-07.ilp', 'channel': 4, } diff --git a/clients/imagej/adapter.py b/clients/imagej/adapter.py index f09942b7460a925d1d0fabed29ee9d3372a56c1d..3ed10c07c8993b5868b96fe5fb72ca3897f4d510 100644 --- a/clients/imagej/adapter.py +++ b/clients/imagej/adapter.py @@ -31,9 +31,9 @@ def hit_endpoint(method, endpoint, params=None): resp = connection.getresponse() resp_str = resp.read() try: - content = json.loads(resp_str) + content = json.loads(resp_str) except Exception: - content = {'str': str(resp_str)} + content = {'str': str(resp_str)} return {'status': resp.status, 'content': content} def run_request_sequence(imp, func, params): @@ -44,6 +44,6 @@ def run_request_sequence(imp, func, params): :param params: (dict) parameters specific to client request :return: (ij.ImagePlus) output image """ - in_path = imp.getProp('Location') - out_path = func(hit_endpoint, in_path, params) - return ImagePlus(out_path) \ No newline at end of file + in_path = imp.getProp('Location') + out_path = func(hit_endpoint, in_path, params) + return ImagePlus(out_path) \ No newline at end of file