File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -106,12 +106,12 @@ def build_boilerplate(config_file, workflow):
106
106
config .load (config_file )
107
107
logs_path = config .execution .output_dir / 'fmriprep' / 'logs'
108
108
boilerplate = workflow .visit_desc ()
109
+ citation_files = {
110
+ ext : logs_path / ('CITATION.%s' % ext )
111
+ for ext in ('bib' , 'tex' , 'md' , 'html' )
112
+ }
109
113
110
114
if boilerplate :
111
- citation_files = {
112
- ext : logs_path / ('CITATION.%s' % ext )
113
- for ext in ('bib' , 'tex' , 'md' , 'html' )
114
- }
115
115
# To please git-annex users and also to guarantee consistency
116
116
# among different renderings of the same file, first remove any
117
117
# existing one
@@ -123,11 +123,6 @@ def build_boilerplate(config_file, workflow):
123
123
124
124
citation_files ['md' ].write_text (boilerplate )
125
125
126
- citation_files = {
127
- ext : config .execution .output_dir / 'fmriprep' / 'logs'
128
- / ('CITATION.%s' % ext ) for ext in ('bib' , 'tex' , 'md' , 'html' )
129
- }
130
-
131
126
if not config .execution .md_only_boilerplate and citation_files ['md' ].exists ():
132
127
from subprocess import check_call , CalledProcessError , TimeoutExpired
133
128
from pkg_resources import resource_filename as pkgrf
You can’t perform that action at this time.
0 commit comments