Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 24, 2022
1 parent d1e3c58 commit 9d037df
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions pydra/engine/audit.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ def audit_task(self, task):
import subprocess as sp

label = task.name


command = task.cmdline if hasattr(task.inputs, "executable") else None
attr_list = attr_fields(task.inputs)
Expand All @@ -186,18 +185,15 @@ def audit_task(self, task):
file_hash = hash_file(input_path)
entity_id = f"uid:{gen_uuid()}"
entity_message = {
"@id": entity_id,
"@id": entity_id,
"Label": entity_label,
"AtLocation": input_path,
"GeneratedBy": None,
"GeneratedBy": None,
"@type": "input",
"digest": file_hash,
}
self.audit_message(entity_message, AuditFlag.PROV)




if command is not None:
cmd_name = command.split()[0]
software = f"{cmd_name} --version"
Expand Down Expand Up @@ -225,6 +221,4 @@ def audit_task(self, task):
"AssociatedWith": version_cmd,
}



self.audit_message(start_message, AuditFlag.PROV)

0 comments on commit 9d037df

Please sign in to comment.