From d57cc42bbd5930d5936d032292662f9caea6ec19 Mon Sep 17 00:00:00 2001 From: Christopher Rhodes <christopher.rhodes@embl.de> Date: Fri, 26 Apr 2024 13:21:54 +0200 Subject: [PATCH] Stable conversion to relpaths --- model_server/scripts/correct_ilastik_abspath.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/model_server/scripts/correct_ilastik_abspath.py b/model_server/scripts/correct_ilastik_abspath.py index 234031d2..f915bf3f 100644 --- a/model_server/scripts/correct_ilastik_abspath.py +++ b/model_server/scripts/correct_ilastik_abspath.py @@ -26,8 +26,10 @@ def make_abspath_to_relpath(ilp_filename: str, my_root: Path, their_root: Path): infos[lane][role]['filePath'] = str(pa_img_rel) return pa_ilp_new -if __name__ == '__main__': + + +if __name__ == '__main__': files = [ '01_ilastik_files/240301_LSM900_DNA_PC.ilp', '01_ilastik_files/240320_LSM900_DNA_OC_new.ilp', @@ -42,3 +44,5 @@ if __name__ == '__main__': ) print(f'Finished converting {new_ilp}') + + -- GitLab