Skip to content

Commit

Permalink
Update data_object init to sub wf ID into description
Browse files Browse the repository at this point in the history
  • Loading branch information
mbthornton-lbl committed Dec 9, 2024
1 parent f55d718 commit 0cd861a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nmdc_automation/workflow_automation/wfutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,8 @@ def make_data_objects(self, output_dir: Union[str, Path] = None) -> List[DataObj
data_object = DataObject(
id=output_spec["id"], name=output_file_path.name, type="nmdc:DataObject", url=file_url,
data_object_type=output_spec["data_object_type"], md5_checksum=md5_sum,
description=output_spec["description"], was_generated_by=self.workflow_execution_id, )
description=output_spec["description"].replace('{id}', self.workflow_execution_id),
was_generated_by=self.workflow_execution_id, )

data_objects.append(data_object)
return data_objects
Expand Down

0 comments on commit 0cd861a

Please sign in to comment.