Skip to content

Commit 4138611

Browse files
effigiesmgxd
andcommitted
Apply suggestions from code review
Co-authored-by: Mathias Goncalves <[email protected]>
1 parent 7a3e232 commit 4138611

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

fmriprep/utils/bids.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88

99

1010
def write_bidsignore(deriv_dir):
11-
bids_ignore = [
11+
bids_ignore = (
1212
"*.html", "logs/", "figures/", # Reports
1313
"*_xfm.*", # Unspecified transform files
1414
"*.surf.gii", # Unspecified structural outputs
1515
# Unspecified functional outputs
1616
"*_boldref.nii.gz", "*_bold.func.gii",
1717
"*_mixing.tsv", "*_AROMAnoiseICs.csv", "*_regressors.tsv",
18-
]
18+
)
1919
ignore_file = Path(deriv_dir) / ".bidsignore"
2020

2121
ignore_file.write_text("\n".join(bids_ignore) + "\n")
@@ -50,7 +50,7 @@ def write_derivative_description(bids_dir, deriv_dir):
5050
if 'FMRIPREP_SINGULARITY_URL' in os.environ:
5151
desc['GeneratedBy'][0]['Container'] = {
5252
"Type": "singularity",
53-
"URI": os.environ['FMRIPREP_SINGULARITY_URL']
53+
"URI": os.getenv('FMRIPREP_SINGULARITY_URL')
5454
}
5555

5656
# Keys deriving from source dataset
@@ -61,7 +61,7 @@ def write_derivative_description(bids_dir, deriv_dir):
6161

6262
if 'DatasetDOI' in orig_desc:
6363
desc['SourceDatasets'] = [{
64-
'URL': 'https://doi.org/{}'.format(orig_desc['DatasetDOI']),
64+
'URL': f'https://doi.org/{orig_desc["DatasetDOI"]}',
6565
'DOI': orig_desc['DatasetDOI']
6666
}]
6767
if 'License' in orig_desc:

0 commit comments

Comments
 (0)