Skip to content

Commit

Permalink
add logging for data object map
Browse files Browse the repository at this point in the history
  • Loading branch information
mbthornton-lbl committed Dec 10, 2024
1 parent 90f57f1 commit cc679b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nmdc_automation/import_automation/activity_mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit cc679b5

Please sign in to comment.