From 2f5c33c5ab2b46cd6cc0e71271a1888383b924ef Mon Sep 17 00:00:00 2001 From: Francois Date: Tue, 16 Jul 2024 16:45:09 +0100 Subject: [PATCH] created empty annotation file list to make tests pass --- .../bia_ingest_sm/conversion/annotation_method.py | 2 +- bia-ingest-shared-models/test/data/S-BIADTEST.json | 2 +- bia-ingest-shared-models/test/data/file_list_annotations_1.json | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 bia-ingest-shared-models/test/data/file_list_annotations_1.json diff --git a/bia-ingest-shared-models/bia_ingest_sm/conversion/annotation_method.py b/bia-ingest-shared-models/bia_ingest_sm/conversion/annotation_method.py index 47e84937..01e0a58e 100644 --- a/bia-ingest-shared-models/bia_ingest_sm/conversion/annotation_method.py +++ b/bia-ingest-shared-models/bia_ingest_sm/conversion/annotation_method.py @@ -33,7 +33,7 @@ def extract_annotation_method_dicts(submission: Submission) -> List[Dict[str, An annotation_sections = find_sections_recursive(submission.section, ["Annotations"], []) key_mapping = [ - ("title_id", "Title", ""), + ("title_id", "Name", ""), ("protocol_description", "Annotation overview", ""), ("annotation_criteria", "Annotation criteria", ""), ("annotation_coverage", "Annotation coverage", ""), diff --git a/bia-ingest-shared-models/test/data/S-BIADTEST.json b/bia-ingest-shared-models/test/data/S-BIADTEST.json index a399f9b0..c6f2f63e 100644 --- a/bia-ingest-shared-models/test/data/S-BIADTEST.json +++ b/bia-ingest-shared-models/test/data/S-BIADTEST.json @@ -287,7 +287,7 @@ "accno" : "Annotations-29", "type" : "Annotations", "attributes" : [ { - "name" : "Title", + "name" : "Name", "value" : "Segmentation masks" }, { "name" : "Annotation overview", diff --git a/bia-ingest-shared-models/test/data/file_list_annotations_1.json b/bia-ingest-shared-models/test/data/file_list_annotations_1.json new file mode 100644 index 00000000..0d4f101c --- /dev/null +++ b/bia-ingest-shared-models/test/data/file_list_annotations_1.json @@ -0,0 +1,2 @@ +[ +]