Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
"""
import os
from pathlib import Path
import json
from ..__about__ import __version__, __url__, DOWNLOAD_URL
bids_dir = Path(bids_dir)
deriv_dir = Path(deriv_dir)
desc = {
'Name': 'sMRIPrep - Structural MRI PREProcessing workflow',
'BIDSVersion': '1.1.1',
'PipelineDescription': {
'Name': 'sMRIPrep',
'Version': __version__,
'CodeURL': DOWNLOAD_URL,
},
'CodeURL': __url__,
'HowToAcknowledge':
'Please cite our paper (https://doi.org/10.1101/306951), and '
'include the generated citation boilerplate within the Methods '
'section of the text.',
}
# Keys that can only be set by environment
if 'SMRIPREP_DOCKER_TAG' in os.environ:
desc['DockerHubContainerTag'] = os.environ['SMRIPREP_DOCKER_TAG']
if 'SMRIPREP_SINGULARITY_URL' in os.environ:
singularity_url = os.environ['SMRIPREP_SINGULARITY_URL']
desc['SingularityContainerURL'] = singularity_url
singularity_md5 = _get_shub_version(singularity_url)