From 15e48c41033fc9ddd6b90c3848af72facc1b1e79 Mon Sep 17 00:00:00 2001 From: Val Hendrix Date: Fri, 6 Oct 2023 16:33:46 -0700 Subject: [PATCH] bug(transfer): fixes crosswalk transform of methods Closes #398 --- archive_api/service/essdive_transfer/crosswalk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archive_api/service/essdive_transfer/crosswalk.py b/archive_api/service/essdive_transfer/crosswalk.py index f3bfa9a9..0b5059ca 100644 --- a/archive_api/service/essdive_transfer/crosswalk.py +++ b/archive_api/service/essdive_transfer/crosswalk.py @@ -264,7 +264,7 @@ def dataset_transform(dataset) -> Tuple[Dict, Optional[TextIO]]: # --- methods --- measurement_technique = None if dataset.qaqc_method_description is not None: - measurement_technique = [dataset.qaqc_method_description] + measurement_technique = dataset.qaqc_method_description and [r for r in dataset.qaqc_method_description .split('\n') if r] or list() # --- ASSIGN TO JSON-LD ----