Skip to content

Commit

Permalink
[ADD] BIDSProvVersion in sidecar files
Browse files Browse the repository at this point in the history
  • Loading branch information
remiadon committed Jun 18, 2021
1 parent baf47bf commit 47fb0a9
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions bids_examples/attention/attention_prov.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"@context": "https://raw.githubusercontent.com/cmaumet/BIDS-prov/context-type-indexing/context.json",
"BIDSProvVersion": "1.0.0",
"@id": "http://example.org/ds00000X",
"generatedAt": "2020-03-10T10:00:00",
"wasGeneratedBy": {
Expand Down
3 changes: 1 addition & 2 deletions bids_prov/spm_load_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
import yaml
import os

import os

this_path = os.path.dirname(os.path.abspath(__file__))

PATH_REGEX = r"([A-Za-z]:|[A-Za-z0-9_-]+(\.[A-Za-z0-9_-]+)*)((/[A-Za-z0-9_.-]+)+)"
Expand All @@ -23,6 +21,7 @@
def get_empty_graph(context_url=CONTEXT_URL):
return {
"@context": context_url,
"BIDSProvVersion": "1.0.0",
"@id": "http://example.org/ds00000X",
"generatedAt": "2020-03-10T10:00:00",
"wasGeneratedBy": {
Expand Down
1 change: 1 addition & 0 deletions examples/fmriprep/simple.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"@context": "https://raw.githubusercontent.com/cmaumet/BIDS-prov/context-type-indexing/context.json",
"BIDSProvVersion": "1.0.0",
"records": {
"prov:Agent": [
{
Expand Down
1 change: 1 addition & 0 deletions examples/fsl_default/default.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"@context": "https://raw.githubusercontent.com/cmaumet/BIDS-prov/context-type-indexing/context.json",
"BIDSProvVersion": "1.0.0",
"records": {
"prov:Agent": [
{
Expand Down
1 change: 1 addition & 0 deletions examples/fsl_default/group_analysis.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"@context": "https://raw.githubusercontent.com/cmaumet/BIDS-prov/context-type-indexing/context.json",
"BIDSProvVersion": "1.0.0",
"records": {
"prov:Agent": [
{
Expand Down
1 change: 1 addition & 0 deletions examples/fsl_default/single_subject_inference.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"@context": "https://raw.githubusercontent.com/cmaumet/BIDS-prov/context-type-indexing/context.json",
"BIDSProvVersion": "1.0.0",
"records": {
"prov:Agent": [
{
Expand Down
1 change: 1 addition & 0 deletions examples/spm_default/copies.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"@context": "https://raw.githubusercontent.com/cmaumet/BIDS-prov/context-type-indexing/context.json",
"BIDSProvVersion": "1.0.0",
"@id": "http://example.org/ds00000X",
"generatedAt": "2020-03-10T10:00:00",
"wasGeneratedBy": {
Expand Down
1 change: 1 addition & 0 deletions examples/spm_default/coreg_and_segment.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"@context": "https://raw.githubusercontent.com/cmaumet/BIDS-prov/context-type-indexing/context.json",
"BIDSProvVersion": "1.0.0",
"@id": "http://example.org/ds00000X",
"generatedAt": "2020-03-10T10:00:00",
"wasGeneratedBy": {
Expand Down
1 change: 1 addition & 0 deletions examples/spm_default/model_and_contrast.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"@context": "https://raw.githubusercontent.com/cmaumet/BIDS-prov/context-type-indexing/context.json",
"BIDSProvVersion": "1.0.0",
"@id": "http://example.org/ds00000X",
"generatedAt": "2020-03-10T10:00:00",
"wasGeneratedBy": {
Expand Down
1 change: 1 addition & 0 deletions examples/spm_default/normalise.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"@context": "https://raw.githubusercontent.com/cmaumet/BIDS-prov/context-type-indexing/context.json",
"BIDSProvVersion": "1.0.0",
"@id": "http://example.org/ds00000X",
"generatedAt": "2020-03-10T10:00:00",
"wasGeneratedBy": {
Expand Down
1 change: 1 addition & 0 deletions examples/spm_default/realign.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"@context": "https://raw.githubusercontent.com/cmaumet/BIDS-prov/context-type-indexing/context.json",
"BIDSProvVersion": "1.0.0",
"@id": "http://example.org/ds00000X",
"generatedAt": "2020-03-10T10:00:00",
"wasGeneratedBy": {
Expand Down
1 change: 1 addition & 0 deletions examples/spm_default/report.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"@context": "https://raw.githubusercontent.com/cmaumet/BIDS-prov/context-type-indexing/context.json",
"BIDSProvVersion": "1.0.0",
"@id": "http://example.org/ds00000X",
"generatedAt": "2020-03-10T10:00:00",
"wasGeneratedBy": {
Expand Down
1 change: 1 addition & 0 deletions examples/spm_default/smooth.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"@context": "https://raw.githubusercontent.com/cmaumet/BIDS-prov/context-type-indexing/context.json",
"BIDSProvVersion": "1.0.0",
"@id": "http://example.org/ds00000X",
"generatedAt": "2020-03-10T10:00:00",
"wasGeneratedBy": {
Expand Down

0 comments on commit 47fb0a9

Please sign in to comment.