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
55042345
Commit
55042345
authored
Dec 01, 2021
by
Fidel Alfaro Almagro
Browse files
Update bb_file_manager.py - Removing unneeded ['path'] string
parent
7984cfc9
Changes
1
Hide whitespace changes
Inline
Side-by-side
bb_pipeline_tools/bb_file_manager.py
View file @
55042345
...
...
@@ -93,7 +93,7 @@ def bb_file_manager(logger, subject, check_existence, check_normalisation,
if
check_existence
:
# 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
]
[
'path'
]
)))]
keysToDele
=
[
key
for
key
in
fileConfig
if
((
not
isinstance
(
fileConfig
[
key
],
list
))
and
(
not
os
.
path
.
exists
(
fileConfig
[
key
])))]
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