From cc679b5730101281b3ad2d4ec5bde839b3994664 Mon Sep 17 00:00:00 2001 From: Michael Thornton Date: Tue, 10 Dec 2024 13:10:48 -0800 Subject: [PATCH] add logging for data object map --- nmdc_automation/import_automation/activity_mapper.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nmdc_automation/import_automation/activity_mapper.py b/nmdc_automation/import_automation/activity_mapper.py index 1053598c..ba325c30 100644 --- a/nmdc_automation/import_automation/activity_mapper.py +++ b/nmdc_automation/import_automation/activity_mapper.py @@ -131,6 +131,7 @@ def map_sequencing_data(self) -> Tuple[nmdc.Database, Dict]: self.data_object_map["Metagenome Raw Reads"] = ( ["nmdc:ReadQcAnalysis"], ["nmdc:NucleotideSequencing"], has_output[0] ) + logger.info(f"Adding Sequencing data to Map: {has_output[0]}") return db, update @@ -180,6 +181,8 @@ def process_files(files: Union[str, List[str]], data_object_dict: Dict, workflow [data_object_dict["output_of"]], data_object_id, ) + do_type = data_object_dict["data_object_type"] + logger.info(f"Adding {do_type} to Map: {data_object_id}") return DataObject(**do_record) # Select the correct data source (unique or multiple)