bids-standard / BEP028_BIDSprov

Organizing and coordinating BIDS extension proposal 28 : BIDS Provenance
https://bids.neuroimaging.io/bep028
Creative Commons Attribution 4.0 International
4 stars 12 forks source link

Lib #30

Closed remiadon closed 4 years ago

remiadon commented 4 years ago
>>> python bids_prov/visualize.py --help
Usage: visualize.py [OPTIONS] [FILENAMES]...

Options:
  -o, --output_file TEXT
  --help                  Show this message and exit.

>>> python bids_prov/visualize.py examples/fsl_default/default.json -o default.png
default.png
remiadon commented 4 years ago

@cmaumet run the script on default.json it words like a charm. If I try to replace the "records" key by "graph" (we use "@graph" in the spm_default example), I get the following error

KeyError: 'http://scicrunch.org/resolver/SCR_002823'

Is that the expected behaviour ?

cmaumet commented 4 years ago

@remiadon - our context explicitly mention 'records' https://github.com/bids-standard/BEP028_BIDSprov/blob/master/context.json#L4-L7 so we'll have to stick to that. Can you update the SPM example accordingly?