Skip to content

Commit 9f1dda1

Browse files
committed
Removing AtLocation for datasets + relative paths instead of absolute
1 parent 58788e0 commit 9f1dda1

File tree

8 files changed

+47
-53
lines changed

8 files changed

+47
-53
lines changed

bids_prov/merge.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ def get_dataset_entity_record(description_file: BIDSJSONFile) -> dict:
9494
entity = {
9595
"Id": "bids:current_dataset",
9696
"Label": metadata['Name'],
97-
"AtLocation": description_file.dirname,
9897
"GeneratedBy": []
9998
}
10099

@@ -114,7 +113,7 @@ def get_entity_record(layout: BIDSLayout, data_file: BIDSFile) -> dict:
114113
entity = {
115114
"Id": f"bids::{data_file.relpath}",
116115
"Label": data_file.filename,
117-
"AtLocation": data_file.path
116+
"AtLocation": data_file.relpath
118117
}
119118

120119
# Get provenance-related metadata
@@ -146,7 +145,7 @@ def get_sidecar_entity_record(layout: BIDSLayout, data_file: BIDSFile) -> dict:
146145
entity = {
147146
"Id": f"bids::{sidecar.relpath}",
148147
"Label": sidecar.filename,
149-
"AtLocation": sidecar.path
148+
"AtLocation": sidecar.relpath
150149
}
151150

152151
# Get provenance-related metadata

bids_prov/tests/samples_test/provenance_ds01.jsonld

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -151,15 +151,15 @@
151151
{
152152
"Id": "bids:ds000011:sub-01/func/sub-01_task-tonecounting_bold.nii.gz",
153153
"Label": "sub-01_task-tonecounting_bold.nii.gz",
154-
"AtLocation": "data/sub-01/func/sub-01_task-tonecounting_bold.nii.gz",
154+
"AtLocation": "sub-01/func/sub-01_task-tonecounting_bold.nii.gz",
155155
"Digest": {
156156
"sha256": "c02dc3b622a92fdcdaacb1dd198cd45b4004f326dd1f1abbc4be15a5e4cbc57d"
157157
}
158158
},
159159
{
160160
"Id": "bids:ds000011:sub-01/anat/sub-01_T1w.nii.gz",
161161
"Label": "sub-01_T1w.nii.gz",
162-
"AtLocation": "data/sub-01/anat/sub-01_T1w.nii.gz",
162+
"AtLocation": "sub-01/anat/sub-01_T1w.nii.gz",
163163
"Digest": {
164164
"sha256": "66eeafb465559148e0222d4079558a8354eb09b9efabcc47cd5b8af6eed51907"
165165
}
@@ -237,7 +237,7 @@
237237
{
238238
"Id": "bids::sub-01/anat/c1sub-01_T1w.nii",
239239
"Label": "c1sub-01_T1w.nii",
240-
"AtLocation": "/home/bclenet/dev/BEP028_BIDSprov/bids_prov/tests/samples_test/provenance_ds01/sub-01/anat/c1sub-01_T1w.nii",
240+
"AtLocation": "sub-01/anat/c1sub-01_T1w.nii",
241241
"GeneratedBy": "bids::prov#segment-7d5d4ac5",
242242
"Digest": {
243243
"sha256": "4ee9cdc19e6d2d15c79d1a0435542b302b31b576c6f40394ec1d55b3cc7351a1"
@@ -246,7 +246,7 @@
246246
{
247247
"Id": "bids::sub-01/anat/c2sub-01_T1w.nii",
248248
"Label": "c2sub-01_T1w.nii",
249-
"AtLocation": "/home/bclenet/dev/BEP028_BIDSprov/bids_prov/tests/samples_test/provenance_ds01/sub-01/anat/c2sub-01_T1w.nii",
249+
"AtLocation": "sub-01/anat/c2sub-01_T1w.nii",
250250
"GeneratedBy": "bids::prov#segment-7d5d4ac5",
251251
"Digest": {
252252
"sha256": "d1fa6211974992935cbf9b504e2deac8f75e5bb079765aba08fdb56d3263a539"
@@ -255,7 +255,7 @@
255255
{
256256
"Id": "bids::sub-01/anat/c3sub-01_T1w.nii",
257257
"Label": "c3sub-01_T1w.nii",
258-
"AtLocation": "/home/bclenet/dev/BEP028_BIDSprov/bids_prov/tests/samples_test/provenance_ds01/sub-01/anat/c3sub-01_T1w.nii",
258+
"AtLocation": "sub-01/anat/c3sub-01_T1w.nii",
259259
"GeneratedBy": "bids::prov#segment-7d5d4ac5",
260260
"Digest": {
261261
"sha256": "9d3223664bb5610129474cc4d365f1c369f846f8c83a6872ba766227fcf4ba65"
@@ -264,7 +264,7 @@
264264
{
265265
"Id": "bids::sub-01/anat/c4sub-01_T1w.nii",
266266
"Label": "c4sub-01_T1w.nii",
267-
"AtLocation": "/home/bclenet/dev/BEP028_BIDSprov/bids_prov/tests/samples_test/provenance_ds01/sub-01/anat/c4sub-01_T1w.nii",
267+
"AtLocation": "sub-01/anat/c4sub-01_T1w.nii",
268268
"GeneratedBy": "bids::prov#segment-7d5d4ac5",
269269
"Digest": {
270270
"sha256": "b59a29a23ad0c543324695ee73e21bf0b979a05727c7cd6198d8fe7eb9b1a5a1"
@@ -273,7 +273,7 @@
273273
{
274274
"Id": "bids::sub-01/anat/c5sub-01_T1w.nii",
275275
"Label": "c5sub-01_T1w.nii",
276-
"AtLocation": "/home/bclenet/dev/BEP028_BIDSprov/bids_prov/tests/samples_test/provenance_ds01/sub-01/anat/c5sub-01_T1w.nii",
276+
"AtLocation": "sub-01/anat/c5sub-01_T1w.nii",
277277
"GeneratedBy": "bids::prov#segment-7d5d4ac5",
278278
"Digest": {
279279
"sha256": "ecfb322b8de97d42dd423965b5f5d9d6dea2e8f4299d56a4a0e13b2a923f406b"
@@ -282,7 +282,7 @@
282282
{
283283
"Id": "bids::sub-01/anat/msub-01_T1w.nii",
284284
"Label": "msub-01_T1w.nii",
285-
"AtLocation": "/home/bclenet/dev/BEP028_BIDSprov/bids_prov/tests/samples_test/provenance_ds01/sub-01/anat/msub-01_T1w.nii",
285+
"AtLocation": "sub-01/anat/msub-01_T1w.nii",
286286
"GeneratedBy": "bids::prov#segment-7d5d4ac5",
287287
"Digest": {
288288
"sha256": "2e93b52ab94f2de40d681226f790d835f80768b3c93052f1f5326650f6903787"
@@ -291,7 +291,7 @@
291291
{
292292
"Id": "bids::sub-01/anat/sub-01_T1w.nii",
293293
"Label": "sub-01_T1w.nii",
294-
"AtLocation": "/home/bclenet/dev/BEP028_BIDSprov/bids_prov/tests/samples_test/provenance_ds01/sub-01/anat/sub-01_T1w.nii",
294+
"AtLocation": "sub-01/anat/sub-01_T1w.nii",
295295
"GeneratedBy": "bids::prov#coregister-6d38be4a",
296296
"Digest": {
297297
"sha256": "f29cb68cce4cb3aa2ccbc791aceff3705a23e07dfc40c045a7ce3879ebc1f338"
@@ -300,7 +300,7 @@
300300
{
301301
"Id": "bids::sub-01/anat/sub-01_T1w_seg8.mat",
302302
"Label": "sub-01_T1w_seg8.mat",
303-
"AtLocation": "/home/bclenet/dev/BEP028_BIDSprov/bids_prov/tests/samples_test/provenance_ds01/sub-01/anat/sub-01_T1w_seg8.mat",
303+
"AtLocation": "sub-01/anat/sub-01_T1w_seg8.mat",
304304
"GeneratedBy": "bids::prov#segment-7d5d4ac5",
305305
"Digest": {
306306
"sha256": "cdd06d2e158ab441583bef1ab549eae98a0e3bd2aea5bbdd5495d0a2b3042422"
@@ -309,7 +309,7 @@
309309
{
310310
"Id": "bids::sub-01/anat/wmsub-01_T1w.nii",
311311
"Label": "wmsub-01_T1w.nii",
312-
"AtLocation": "/home/bclenet/dev/BEP028_BIDSprov/bids_prov/tests/samples_test/provenance_ds01/sub-01/anat/wmsub-01_T1w.nii",
312+
"AtLocation": "sub-01/anat/wmsub-01_T1w.nii",
313313
"GeneratedBy": "bids::prov#normalize-7a89965b",
314314
"Digest": {
315315
"sha256": "eec0a3f558277a6947403a858e922192956cccc9253517e7fe2f8e63aaad935a"
@@ -318,7 +318,7 @@
318318
{
319319
"Id": "bids::sub-01/anat/y_sub-01_T1w.nii",
320320
"Label": "y_sub-01_T1w.nii",
321-
"AtLocation": "/home/bclenet/dev/BEP028_BIDSprov/bids_prov/tests/samples_test/provenance_ds01/sub-01/anat/y_sub-01_T1w.nii",
321+
"AtLocation": "sub-01/anat/y_sub-01_T1w.nii",
322322
"GeneratedBy": "bids::prov#segment-7d5d4ac5",
323323
"Digest": {
324324
"sha256": "926c276c324b3b36f1c8288309b0753aeed20e707fddfb6054b4d8ddfca50c6e"
@@ -327,7 +327,7 @@
327327
{
328328
"Id": "bids::sub-01/func/meansub-01_task-tonecounting_bold.nii",
329329
"Label": "meansub-01_task-tonecounting_bold.nii",
330-
"AtLocation": "/home/bclenet/dev/BEP028_BIDSprov/bids_prov/tests/samples_test/provenance_ds01/sub-01/func/meansub-01_task-tonecounting_bold.nii",
330+
"AtLocation": "sub-01/func/meansub-01_task-tonecounting_bold.nii",
331331
"GeneratedBy": "bids::prov#realign-acea8093",
332332
"Digest": {
333333
"sha256": "a4a7dd08d305ada75d3c3643dc5f1b96a6d5d94657f8aea79b6d15431845179a"
@@ -336,7 +336,7 @@
336336
{
337337
"Id": "bids::sub-01/func/rp_sub-01_task-tonecounting_bold.txt",
338338
"Label": "rp_sub-01_task-tonecounting_bold.txt",
339-
"AtLocation": "/home/bclenet/dev/BEP028_BIDSprov/bids_prov/tests/samples_test/provenance_ds01/sub-01/func/rp_sub-01_task-tonecounting_bold.txt",
339+
"AtLocation": "sub-01/func/rp_sub-01_task-tonecounting_bold.txt",
340340
"GeneratedBy": "bids::prov#realign-acea8093",
341341
"Digest": {
342342
"sha256": "c2a488c8cde52cd8e4f367c9648cef82035a07358f83baa7e135dca0da681e2b"
@@ -345,7 +345,7 @@
345345
{
346346
"Id": "bids::sub-01/func/rsub-01_task-tonecounting_bold.nii",
347347
"Label": "rsub-01_task-tonecounting_bold.nii",
348-
"AtLocation": "/home/bclenet/dev/BEP028_BIDSprov/bids_prov/tests/samples_test/provenance_ds01/sub-01/func/rsub-01_task-tonecounting_bold.nii",
348+
"AtLocation": "sub-01/func/rsub-01_task-tonecounting_bold.nii",
349349
"GeneratedBy": "bids::prov#realign-acea8093",
350350
"Digest": {
351351
"sha256": "4aa86c3237d1e8b23417b91e2cb919b59e4aa5fae9beb803fa916c906926bded"
@@ -354,7 +354,7 @@
354354
{
355355
"Id": "bids::sub-01/func/swrsub-01_task-tonecounting_bold.nii",
356356
"Label": "swrsub-01_task-tonecounting_bold.nii",
357-
"AtLocation": "/home/bclenet/dev/BEP028_BIDSprov/bids_prov/tests/samples_test/provenance_ds01/sub-01/func/swrsub-01_task-tonecounting_bold.nii",
357+
"AtLocation": "sub-01/func/swrsub-01_task-tonecounting_bold.nii",
358358
"GeneratedBy": "bids::prov#smooth-36370afe",
359359
"Digest": {
360360
"sha256": "62dea718e44b7914ba88fc60e713a0fc17f3665e37b156436edcad606ffc42be"
@@ -363,7 +363,7 @@
363363
{
364364
"Id": "bids::sub-01/func/wrsub-01_task-tonecounting_bold.nii",
365365
"Label": "wrsub-01_task-tonecounting_bold.nii",
366-
"AtLocation": "/home/bclenet/dev/BEP028_BIDSprov/bids_prov/tests/samples_test/provenance_ds01/sub-01/func/wrsub-01_task-tonecounting_bold.nii",
366+
"AtLocation": "sub-01/func/wrsub-01_task-tonecounting_bold.nii",
367367
"GeneratedBy": "bids::prov#normalize-58f60575",
368368
"Digest": {
369369
"sha256": "5ed83909bc333eefede28b971461d95a0d20783985ca0447b1e73cb2b6124fba"
@@ -372,7 +372,6 @@
372372
{
373373
"Id": "bids:current_dataset",
374374
"Label": "Provenance records for SPM-based fMRI statistical analysis",
375-
"AtLocation": "/home/bclenet/dev/BEP028_BIDSprov/bids_prov/tests/samples_test/provenance_ds01",
376375
"GeneratedBy": [
377376
"bids::prov#preprocessing-yBHdvts7"
378377
]

bids_prov/tests/samples_test/provenance_ds01/prov/prov-spm_ent.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
{
44
"Id": "bids:ds000011:sub-01/func/sub-01_task-tonecounting_bold.nii.gz",
55
"Label": "sub-01_task-tonecounting_bold.nii.gz",
6-
"AtLocation": "data/sub-01/func/sub-01_task-tonecounting_bold.nii.gz",
6+
"AtLocation": "sub-01/func/sub-01_task-tonecounting_bold.nii.gz",
77
"Digest": {
88
"sha256": "c02dc3b622a92fdcdaacb1dd198cd45b4004f326dd1f1abbc4be15a5e4cbc57d"
99
}
1010
},
1111
{
1212
"Id": "bids:ds000011:sub-01/anat/sub-01_T1w.nii.gz",
1313
"Label": "sub-01_T1w.nii.gz",
14-
"AtLocation": "data/sub-01/anat/sub-01_T1w.nii.gz",
14+
"AtLocation": "sub-01/anat/sub-01_T1w.nii.gz",
1515
"Digest": {
1616
"sha256": "66eeafb465559148e0222d4079558a8354eb09b9efabcc47cd5b8af6eed51907"
1717
}

bids_prov/tests/samples_test/provenance_ds01_preprocessing.jsonld

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
{
3232
"Id": "bids:current_dataset",
3333
"Label": "Provenance records for SPM-based fMRI statistical analysis",
34-
"AtLocation": "/home/bclenet/dev/BEP028_BIDSprov/bids_prov/tests/samples_test/provenance_ds01",
3534
"GeneratedBy": [
3635
"bids::prov#preprocessing-yBHdvts7"
3736
]

bids_prov/tests/samples_test/provenance_ds01_spm.jsonld

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -130,15 +130,15 @@
130130
{
131131
"Id": "bids:ds000011:sub-01/func/sub-01_task-tonecounting_bold.nii.gz",
132132
"Label": "sub-01_task-tonecounting_bold.nii.gz",
133-
"AtLocation": "data/sub-01/func/sub-01_task-tonecounting_bold.nii.gz",
133+
"AtLocation": "sub-01/func/sub-01_task-tonecounting_bold.nii.gz",
134134
"Digest": {
135135
"sha256": "c02dc3b622a92fdcdaacb1dd198cd45b4004f326dd1f1abbc4be15a5e4cbc57d"
136136
}
137137
},
138138
{
139139
"Id": "bids:ds000011:sub-01/anat/sub-01_T1w.nii.gz",
140140
"Label": "sub-01_T1w.nii.gz",
141-
"AtLocation": "data/sub-01/anat/sub-01_T1w.nii.gz",
141+
"AtLocation": "sub-01/anat/sub-01_T1w.nii.gz",
142142
"Digest": {
143143
"sha256": "66eeafb465559148e0222d4079558a8354eb09b9efabcc47cd5b8af6eed51907"
144144
}
@@ -216,7 +216,7 @@
216216
{
217217
"Id": "bids::sub-01/anat/c1sub-01_T1w.nii",
218218
"Label": "c1sub-01_T1w.nii",
219-
"AtLocation": "/home/bclenet/dev/BEP028_BIDSprov/bids_prov/tests/samples_test/provenance_ds01/sub-01/anat/c1sub-01_T1w.nii",
219+
"AtLocation": "sub-01/anat/c1sub-01_T1w.nii",
220220
"GeneratedBy": "bids::prov#segment-7d5d4ac5",
221221
"Digest": {
222222
"sha256": "4ee9cdc19e6d2d15c79d1a0435542b302b31b576c6f40394ec1d55b3cc7351a1"
@@ -225,7 +225,7 @@
225225
{
226226
"Id": "bids::sub-01/anat/c2sub-01_T1w.nii",
227227
"Label": "c2sub-01_T1w.nii",
228-
"AtLocation": "/home/bclenet/dev/BEP028_BIDSprov/bids_prov/tests/samples_test/provenance_ds01/sub-01/anat/c2sub-01_T1w.nii",
228+
"AtLocation": "sub-01/anat/c2sub-01_T1w.nii",
229229
"GeneratedBy": "bids::prov#segment-7d5d4ac5",
230230
"Digest": {
231231
"sha256": "d1fa6211974992935cbf9b504e2deac8f75e5bb079765aba08fdb56d3263a539"
@@ -234,7 +234,7 @@
234234
{
235235
"Id": "bids::sub-01/anat/c3sub-01_T1w.nii",
236236
"Label": "c3sub-01_T1w.nii",
237-
"AtLocation": "/home/bclenet/dev/BEP028_BIDSprov/bids_prov/tests/samples_test/provenance_ds01/sub-01/anat/c3sub-01_T1w.nii",
237+
"AtLocation": "sub-01/anat/c3sub-01_T1w.nii",
238238
"GeneratedBy": "bids::prov#segment-7d5d4ac5",
239239
"Digest": {
240240
"sha256": "9d3223664bb5610129474cc4d365f1c369f846f8c83a6872ba766227fcf4ba65"
@@ -243,7 +243,7 @@
243243
{
244244
"Id": "bids::sub-01/anat/c4sub-01_T1w.nii",
245245
"Label": "c4sub-01_T1w.nii",
246-
"AtLocation": "/home/bclenet/dev/BEP028_BIDSprov/bids_prov/tests/samples_test/provenance_ds01/sub-01/anat/c4sub-01_T1w.nii",
246+
"AtLocation": "sub-01/anat/c4sub-01_T1w.nii",
247247
"GeneratedBy": "bids::prov#segment-7d5d4ac5",
248248
"Digest": {
249249
"sha256": "b59a29a23ad0c543324695ee73e21bf0b979a05727c7cd6198d8fe7eb9b1a5a1"
@@ -252,7 +252,7 @@
252252
{
253253
"Id": "bids::sub-01/anat/c5sub-01_T1w.nii",
254254
"Label": "c5sub-01_T1w.nii",
255-
"AtLocation": "/home/bclenet/dev/BEP028_BIDSprov/bids_prov/tests/samples_test/provenance_ds01/sub-01/anat/c5sub-01_T1w.nii",
255+
"AtLocation": "sub-01/anat/c5sub-01_T1w.nii",
256256
"GeneratedBy": "bids::prov#segment-7d5d4ac5",
257257
"Digest": {
258258
"sha256": "ecfb322b8de97d42dd423965b5f5d9d6dea2e8f4299d56a4a0e13b2a923f406b"
@@ -261,7 +261,7 @@
261261
{
262262
"Id": "bids::sub-01/anat/msub-01_T1w.nii",
263263
"Label": "msub-01_T1w.nii",
264-
"AtLocation": "/home/bclenet/dev/BEP028_BIDSprov/bids_prov/tests/samples_test/provenance_ds01/sub-01/anat/msub-01_T1w.nii",
264+
"AtLocation": "sub-01/anat/msub-01_T1w.nii",
265265
"GeneratedBy": "bids::prov#segment-7d5d4ac5",
266266
"Digest": {
267267
"sha256": "2e93b52ab94f2de40d681226f790d835f80768b3c93052f1f5326650f6903787"
@@ -270,7 +270,7 @@
270270
{
271271
"Id": "bids::sub-01/anat/sub-01_T1w.nii",
272272
"Label": "sub-01_T1w.nii",
273-
"AtLocation": "/home/bclenet/dev/BEP028_BIDSprov/bids_prov/tests/samples_test/provenance_ds01/sub-01/anat/sub-01_T1w.nii",
273+
"AtLocation": "sub-01/anat/sub-01_T1w.nii",
274274
"GeneratedBy": "bids::prov#coregister-6d38be4a",
275275
"Digest": {
276276
"sha256": "f29cb68cce4cb3aa2ccbc791aceff3705a23e07dfc40c045a7ce3879ebc1f338"
@@ -279,7 +279,7 @@
279279
{
280280
"Id": "bids::sub-01/anat/sub-01_T1w_seg8.mat",
281281
"Label": "sub-01_T1w_seg8.mat",
282-
"AtLocation": "/home/bclenet/dev/BEP028_BIDSprov/bids_prov/tests/samples_test/provenance_ds01/sub-01/anat/sub-01_T1w_seg8.mat",
282+
"AtLocation": "sub-01/anat/sub-01_T1w_seg8.mat",
283283
"GeneratedBy": "bids::prov#segment-7d5d4ac5",
284284
"Digest": {
285285
"sha256": "cdd06d2e158ab441583bef1ab549eae98a0e3bd2aea5bbdd5495d0a2b3042422"
@@ -288,7 +288,7 @@
288288
{
289289
"Id": "bids::sub-01/anat/wmsub-01_T1w.nii",
290290
"Label": "wmsub-01_T1w.nii",
291-
"AtLocation": "/home/bclenet/dev/BEP028_BIDSprov/bids_prov/tests/samples_test/provenance_ds01/sub-01/anat/wmsub-01_T1w.nii",
291+
"AtLocation": "sub-01/anat/wmsub-01_T1w.nii",
292292
"GeneratedBy": "bids::prov#normalize-7a89965b",
293293
"Digest": {
294294
"sha256": "eec0a3f558277a6947403a858e922192956cccc9253517e7fe2f8e63aaad935a"
@@ -297,7 +297,7 @@
297297
{
298298
"Id": "bids::sub-01/anat/y_sub-01_T1w.nii",
299299
"Label": "y_sub-01_T1w.nii",
300-
"AtLocation": "/home/bclenet/dev/BEP028_BIDSprov/bids_prov/tests/samples_test/provenance_ds01/sub-01/anat/y_sub-01_T1w.nii",
300+
"AtLocation": "sub-01/anat/y_sub-01_T1w.nii",
301301
"GeneratedBy": "bids::prov#segment-7d5d4ac5",
302302
"Digest": {
303303
"sha256": "926c276c324b3b36f1c8288309b0753aeed20e707fddfb6054b4d8ddfca50c6e"
@@ -306,7 +306,7 @@
306306
{
307307
"Id": "bids::sub-01/func/meansub-01_task-tonecounting_bold.nii",
308308
"Label": "meansub-01_task-tonecounting_bold.nii",
309-
"AtLocation": "/home/bclenet/dev/BEP028_BIDSprov/bids_prov/tests/samples_test/provenance_ds01/sub-01/func/meansub-01_task-tonecounting_bold.nii",
309+
"AtLocation": "sub-01/func/meansub-01_task-tonecounting_bold.nii",
310310
"GeneratedBy": "bids::prov#realign-acea8093",
311311
"Digest": {
312312
"sha256": "a4a7dd08d305ada75d3c3643dc5f1b96a6d5d94657f8aea79b6d15431845179a"
@@ -315,7 +315,7 @@
315315
{
316316
"Id": "bids::sub-01/func/rp_sub-01_task-tonecounting_bold.txt",
317317
"Label": "rp_sub-01_task-tonecounting_bold.txt",
318-
"AtLocation": "/home/bclenet/dev/BEP028_BIDSprov/bids_prov/tests/samples_test/provenance_ds01/sub-01/func/rp_sub-01_task-tonecounting_bold.txt",
318+
"AtLocation": "sub-01/func/rp_sub-01_task-tonecounting_bold.txt",
319319
"GeneratedBy": "bids::prov#realign-acea8093",
320320
"Digest": {
321321
"sha256": "c2a488c8cde52cd8e4f367c9648cef82035a07358f83baa7e135dca0da681e2b"
@@ -324,7 +324,7 @@
324324
{
325325
"Id": "bids::sub-01/func/rsub-01_task-tonecounting_bold.nii",
326326
"Label": "rsub-01_task-tonecounting_bold.nii",
327-
"AtLocation": "/home/bclenet/dev/BEP028_BIDSprov/bids_prov/tests/samples_test/provenance_ds01/sub-01/func/rsub-01_task-tonecounting_bold.nii",
327+
"AtLocation": "sub-01/func/rsub-01_task-tonecounting_bold.nii",
328328
"GeneratedBy": "bids::prov#realign-acea8093",
329329
"Digest": {
330330
"sha256": "4aa86c3237d1e8b23417b91e2cb919b59e4aa5fae9beb803fa916c906926bded"
@@ -333,7 +333,7 @@
333333
{
334334
"Id": "bids::sub-01/func/swrsub-01_task-tonecounting_bold.nii",
335335
"Label": "swrsub-01_task-tonecounting_bold.nii",
336-
"AtLocation": "/home/bclenet/dev/BEP028_BIDSprov/bids_prov/tests/samples_test/provenance_ds01/sub-01/func/swrsub-01_task-tonecounting_bold.nii",
336+
"AtLocation": "sub-01/func/swrsub-01_task-tonecounting_bold.nii",
337337
"GeneratedBy": "bids::prov#smooth-36370afe",
338338
"Digest": {
339339
"sha256": "62dea718e44b7914ba88fc60e713a0fc17f3665e37b156436edcad606ffc42be"
@@ -342,7 +342,7 @@
342342
{
343343
"Id": "bids::sub-01/func/wrsub-01_task-tonecounting_bold.nii",
344344
"Label": "wrsub-01_task-tonecounting_bold.nii",
345-
"AtLocation": "/home/bclenet/dev/BEP028_BIDSprov/bids_prov/tests/samples_test/provenance_ds01/sub-01/func/wrsub-01_task-tonecounting_bold.nii",
345+
"AtLocation": "sub-01/func/wrsub-01_task-tonecounting_bold.nii",
346346
"GeneratedBy": "bids::prov#normalize-58f60575",
347347
"Digest": {
348348
"sha256": "5ed83909bc333eefede28b971461d95a0d20783985ca0447b1e73cb2b6124fba"

bids_prov/tests/samples_test/provenance_ds02.jsonld

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@
3030
{
3131
"Id": "bids::sub-02/anat/sub-02_T1w.nii",
3232
"Label": "sub-02_T1w.nii",
33-
"AtLocation": "/home/bclenet/dev/BEP028_BIDSprov/bids_prov/tests/samples_test/provenance_ds02/sub-02/anat/sub-02_T1w.nii",
33+
"AtLocation": "sub-02/anat/sub-02_T1w.nii",
3434
"GeneratedBy": "bids::prov#conversion-00f3a18f"
3535
},
3636
{
3737
"Id": "bids::sub-02/anat/sub-02_T1w.json",
3838
"Label": "sub-02_T1w.json",
39-
"AtLocation": "/home/bclenet/dev/BEP028_BIDSprov/bids_prov/tests/samples_test/provenance_ds02/sub-02/anat/sub-02_T1w.json",
39+
"AtLocation": "sub-02/anat/sub-02_T1w.json",
4040
"GeneratedBy": "bids::prov#conversion-00f3a18f"
4141
}
4242
]

bids_prov/tests/samples_test/provenance_ds03.jsonld

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
{
4040
"Id": "bids:current_dataset",
4141
"Label": "Outputs from fMRIPrep preprocessing",
42-
"AtLocation": "/home/bclenet/dev/BEP028_BIDSprov/bids_prov/tests/samples_test/provenance_ds03",
4342
"GeneratedBy": [
4443
"bids::prov#preprocessing-xMpFqB5q"
4544
]

0 commit comments

Comments
 (0)