Skip to content

Commit 704d52e

Browse files
Ryan CaliRyan Cali
authored andcommitted
Refactored, cleaned up old comments
1 parent 1a5822c commit 704d52e

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

pydra/engine/audit.py

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -189,16 +189,6 @@ def audit_task(self, task):
189189
input_name = attrs.name
190190
input_path = None
191191
file_hash = None
192-
# at_location = os.path.abspath(input_name)
193-
194-
# if hasattr(task.inputs, "in_file"):
195-
# input_file = task.inputs.in_file
196-
# file_hash = hash_file(input_file)
197-
# at_location = os.path.abspath(input_file)
198-
# else:
199-
# file_hash = None
200-
# at_location = None
201-
# input_file = None
202192

203193
if command is not None:
204194
cmd_name = command.split()[0]
@@ -228,12 +218,12 @@ def audit_task(self, task):
228218
}
229219
entity_id = f"uid:{gen_uuid()}"
230220
entity_message = {
231-
"@id": entity_id, # add ID here
221+
"@id": entity_id,
232222
"Label": print(entity_label),
233-
"AtLocation": input_path, # at_location,
234-
"GeneratedBy": "test", # if not part of workflow, this will be none
223+
"AtLocation": input_path,
224+
"GeneratedBy": "test",
235225
"@type": "input",
236-
"digest": file_hash, # hash value under helpers.py
226+
"digest": file_hash
237227
}
238228

239229
self.audit_message(start_message, AuditFlag.PROV)

0 commit comments

Comments
 (0)