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
Andrei-Claudiu Roibu
BrainMapper
Commits
b567cb30
Commit
b567cb30
authored
Apr 23, 2020
by
Andrei-Claudiu Roibu
🖥
Browse files
added way to direct os to home directory
parent
ca734793
Changes
2
Hide whitespace changes
Inline
Side-by-side
settings.ini
View file @
b567cb30
[DATA]
[DATA]
data_folder_name
=
"datasets"
data_folder_name
=
"datasets"
use_data_file
=
False
use_data_file
=
False
data_directory
=
"
..
/well/win-biobank/projects/imaging/data/data3/subjectsAll/"
data_directory
=
"/well/win-biobank/projects/imaging/data/data3/subjectsAll/"
data_file
=
"
..
/well/win-biobank/projects/imaging/data/data3/subjectsAll/subj_22k.txt"
data_file
=
"/well/win-biobank/projects/imaging/data/data3/subjectsAll/subj_22k.txt"
k_fold
=
None
k_fold
=
None
data_split_flag
=
False
data_split_flag
=
False
test_percentage
=
5
test_percentage
=
5
...
...
utils/data_utils.py
View file @
b567cb30
...
@@ -45,7 +45,7 @@ def directory_reader(folder_location, subject_number=None, write_txt=False):
...
@@ -45,7 +45,7 @@ def directory_reader(folder_location, subject_number=None, write_txt=False):
number_of_subjects
=
0
number_of_subjects
=
0
if
subject_number
is
None
:
if
subject_number
is
None
:
subject_number
=
len
(
os
.
listdir
(
folder_location
))
subject_number
=
len
(
os
.
listdir
(
os
.
listdir
(
os
.
path
.
join
(
os
.
path
.
expanduser
(
"~"
),
folder_location
))
))
for
directory
in
os
.
listdir
(
folder_location
):
for
directory
in
os
.
listdir
(
folder_location
):
if
number_of_subjects
<
subject_number
:
if
number_of_subjects
<
subject_number
:
...
...
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