Skip to content

Commit 5c38cdd

Browse files
authored
🔥 Remove deprecated --disable_file_logging CLI flag (#1809)
2 parents c28ff76 + df0d8aa commit 5c38cdd

File tree

5 files changed

+16
-20
lines changed

5 files changed

+16
-20
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3535
- Added data-config-specific hash string to C-PAC-generated config files
3636
- Updated `rbc-options` preconfig to use `fmriprep-options` preprocessing
3737
- Changed minimized pipeline base from `default` to `blank`
38+
- Removed deprecated `--disable_file_logging` CLI flag
3839

3940
### Fixed
4041
- Fixed [a bug](https://github.com/FCP-INDI/C-PAC/issues/1779) in which generated pipeline configs were not 100% accurate. The only affected configurable option discovered in testing was seed-based correlation analysis always reverting to the default configuration.

CPAC/resources/configs/pipeline_config_anat-only.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,15 @@ registration_workflows:
7777
FSL-FNIRT:
7878

7979
# Reference mask for FSL registration.
80-
ref_mask: $$$FSLDIR/data/standard/MNI152_T1_${resolution_for_anat}_brain_mask_dil.nii.gz
80+
ref_mask: $FSLDIR/data/standard/MNI152_T1_${resolution_for_anat}_brain_mask_dil.nii.gz
8181

8282
# Template to be used during registration.
8383
# It is not necessary to change this path unless you intend to use a non-standard template.
84-
T1w_brain_template: $$$FSLDIR/data/standard/MNI152_T1_${resolution_for_anat}_brain.nii.gz
84+
T1w_brain_template: $FSLDIR/data/standard/MNI152_T1_${resolution_for_anat}_brain.nii.gz
8585

8686
# Template to be used during registration.
8787
# It is not necessary to change this path unless you intend to use a non-standard template.
88-
T1w_template: $$$FSLDIR/data/standard/MNI152_T1_${resolution_for_anat}.nii.gz
88+
T1w_template: $FSLDIR/data/standard/MNI152_T1_${resolution_for_anat}.nii.gz
8989

9090
# Register skull-on anatomical image to a template.
9191
reg_with_skull: Off
@@ -112,11 +112,11 @@ registration_workflows:
112112

113113
# Standard Skull Stripped Template. Used as a reference image for functional registration.
114114
# This can be different than the template used as the reference/fixed for T1-to-template registration.
115-
T1w_brain_template_funcreg: $$$FSLDIR/data/standard/MNI152_T1_${func_resolution}_brain.nii.gz
115+
T1w_brain_template_funcreg: $FSLDIR/data/standard/MNI152_T1_${func_resolution}_brain.nii.gz
116116

117117
# Standard Anatomical Brain Image with Skull.
118118
# This can be different than the template used as the reference/fixed for T1-to-template registration.
119-
T1w_template_funcreg: $$$FSLDIR/data/standard/MNI152_T1_${func_resolution}.nii.gz
119+
T1w_template_funcreg: $FSLDIR/data/standard/MNI152_T1_${func_resolution}.nii.gz
120120

121121
EPI_registration:
122122
ANTs:
@@ -129,7 +129,7 @@ registration_workflows:
129129

130130
# Identity matrix used during FSL-based resampling of BOLD-space data throughout the pipeline.
131131
# It is not necessary to change this path unless you intend to use a different template.
132-
identity_matrix: $$$FSLDIR/etc/flirtsch/ident.mat
132+
identity_matrix: $FSLDIR/etc/flirtsch/ident.mat
133133

134134
functional_preproc:
135135
run: Off

CPAC/resources/configs/pipeline_config_rbc-options.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ registration_workflows:
3535

3636
# Template to be used during registration.
3737
# It is not necessary to change this path unless you intend to use a non-standard template.
38-
T1w_brain_template: $$$FSLDIR/data/standard/MNI152_T1_${resolution_for_anat}_brain.nii.gz
38+
T1w_brain_template: $FSLDIR/data/standard/MNI152_T1_${resolution_for_anat}_brain.nii.gz
3939

4040
# Template to be used during registration.
4141
# It is not necessary to change this path unless you intend to use a non-standard template.
42-
T1w_template: $$$FSLDIR/data/standard/MNI152_T1_${resolution_for_anat}.nii.gz
42+
T1w_template: $FSLDIR/data/standard/MNI152_T1_${resolution_for_anat}.nii.gz
4343

4444
# Template to be used during registration.
4545
# It is not necessary to change this path unless you intend to use a non-standard template.
46-
T1w_brain_template_mask: $$$FSLDIR/data/standard/MNI152_T1_${resolution_for_anat}_brain_mask.nii.gz
46+
T1w_brain_template_mask: $FSLDIR/data/standard/MNI152_T1_${resolution_for_anat}_brain_mask.nii.gz
4747

4848
functional_registration:
4949
func_registration_to_template:
@@ -69,18 +69,18 @@ registration_workflows:
6969

7070
# Standard Skull Stripped Template. Used as a reference image for functional registration.
7171
# This can be different than the template used as the reference/fixed for T1-to-template registration.
72-
T1w_brain_template_funcreg: $$$FSLDIR/data/standard/MNI152_T1_${func_resolution}_brain.nii.gz
72+
T1w_brain_template_funcreg: $FSLDIR/data/standard/MNI152_T1_${func_resolution}_brain.nii.gz
7373

7474
# Standard Anatomical Brain Image with Skull.
7575
# This can be different than the template used as the reference/fixed for T1-to-template registration.
76-
T1w_template_funcreg: $$$FSLDIR/data/standard/MNI152_T1_${func_resolution}.nii.gz
76+
T1w_template_funcreg: $FSLDIR/data/standard/MNI152_T1_${func_resolution}.nii.gz
7777

7878
# Template to be used during registration.
7979
# It is not necessary to change this path unless you intend to use a non-standard template.
80-
T1w_brain_template_mask_funcreg: $$$FSLDIR/data/standard/MNI152_T1_${func_resolution}_brain_mask.nii.gz
80+
T1w_brain_template_mask_funcreg: $FSLDIR/data/standard/MNI152_T1_${func_resolution}_brain_mask.nii.gz
8181

8282
# a standard template for resampling if using float resolution
83-
T1w_template_for_resample: $$$FSLDIR/data/standard/MNI152_T1_${func_resolution}_brain.nii.gz
83+
T1w_template_for_resample: $FSLDIR/data/standard/MNI152_T1_${func_resolution}_brain.nii.gz
8484

8585
functional_preproc:
8686
distortion_correction:

CPAC/utils/configuration/yaml_template.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,8 @@ def dump(self, new_dict, parents=None):
164164
# SSOT FSLDIR
165165
if (isinstance(value, str) and fsldir in value and
166166
key != 'FSLDIR'):
167-
value = value.replace(fsldir, '$FSLDIR')
167+
value = re.sub(r'\$*FSLDIR', '$FSLDIR',
168+
value.replace(fsldir, '$FSLDIR'))
168169
if isinstance(value, dict):
169170
_dump += [indented_key, self.dump(new_dict, keys)]
170171
elif isinstance(value, list):

dev/docker_data/run.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -247,10 +247,6 @@ def run_main():
247247
parser.add_argument('--save_working_dir', nargs='?',
248248
help='Save the contents of the working directory.',
249249
default=False)
250-
parser.add_argument('--disable_file_logging', action='store_true',
251-
help='Disable file logging, this is useful for '
252-
'clusters that have disabled file locking.',
253-
default=False)
254250

255251
parser.add_argument('--participant_label',
256252
help='The label of the participant that should be '
@@ -595,8 +591,6 @@ def run_main():
595591
c['pipeline_setup']['system_config']['observed_usage'][
596592
'buffer'] = args.runtime_buffer
597593

598-
c['disable_log'] = args.disable_file_logging
599-
600594
if args.save_working_dir is not False:
601595
c['pipeline_setup']['working_directory'][
602596
'remove_working_dir'] = False

0 commit comments

Comments
 (0)