Skip to content

Commit 1a5822c

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 8a0d63c commit 1a5822c

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

pydra/engine/audit.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,7 @@ def audit_task(self, task):
190190
input_path = None
191191
file_hash = None
192192
# at_location = os.path.abspath(input_name)
193-
194-
193+
195194
# if hasattr(task.inputs, "in_file"):
196195
# input_file = task.inputs.in_file
197196
# file_hash = hash_file(input_file)
@@ -229,15 +228,13 @@ def audit_task(self, task):
229228
}
230229
entity_id = f"uid:{gen_uuid()}"
231230
entity_message = {
232-
"@id": entity_id, # add ID here
231+
"@id": entity_id, # add ID here
233232
"Label": print(entity_label),
234-
"AtLocation": input_path, #at_location,
233+
"AtLocation": input_path, # at_location,
235234
"GeneratedBy": "test", # if not part of workflow, this will be none
236235
"@type": "input",
237-
"digest": file_hash # hash value under helpers.py
236+
"digest": file_hash, # hash value under helpers.py
238237
}
239238

240-
241239
self.audit_message(start_message, AuditFlag.PROV)
242240
self.audit_message(entity_message, AuditFlag.PROV)
243-

0 commit comments

Comments
 (0)