Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Fidel Alfaro Almagro
UK_biobank_pipeline_v_1.5
Commits
b69d0686
Commit
b69d0686
authored
Jan 12, 2022
by
Fidel Alfaro Almagro
Browse files
Update bb_file_manager.py
parent
37eb1370
Changes
1
Hide whitespace changes
Inline
Side-by-side
bb_pipeline_tools/bb_file_manager.py
View file @
b69d0686
...
...
@@ -94,6 +94,7 @@ def bb_file_manager(logger, subject, check_existence, check_normalisation,
# Check the config file is correct. If not, correct it.
#keysToDele = [key for key in fileConfig if not os.path.exists(fileConfig[key])]
keysToDele
=
[
key
for
key
in
fileConfig
if
((
not
isinstance
(
fileConfig
[
key
],
list
))
and
(
not
os
.
path
.
exists
(
fileConfig
[
key
])))]
logger
.
info
(
'Keys to delete: '
+
str
(
keysToDele
))
for
key
in
keysToDele
:
del
fileConfig
[
key
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment