Skip to content

Commit 89459a4

Browse files
committed
Provenance of JSON sidecar
1 parent ba5fcd0 commit 89459a4

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

examples/dcm2niix_3/code/merge_prov.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,18 +78,20 @@
7878

7979
# Provenance for the data file
8080
for data_file in data_files:
81-
base_provenance['Records']['Entities'].append({
82-
"Id": f"bids::{data_file}",
83-
"GeneratedBy": activity_data
84-
})
81+
base_provenance['Records']['Entities'].append(
82+
{
83+
"Id": f"bids::{data_file}",
84+
"GeneratedBy": activity_data
85+
}
86+
)
8587

8688
# Provenance for the sidecar
8789
base_provenance['Records']['Entities'].append(
8890
{
8991
"Id": f"bids::{sidecar_filename}",
9092
"GeneratedBy": activity_id
9193
}
92-
)
94+
)
9395

9496
# Write jsonld
9597
with open('prov/merged/prov-dcm2niix.prov.jsonld', 'w', encoding = 'utf-8') as file:

0 commit comments

Comments
 (0)