Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
MPBA Radiomics
RADLER
Commits
ced520e8
Commit
ced520e8
authored
Mar 11, 2020
by
Alessia Marcolini
Browse files
Do not read clinical file as str
parent
456b7009
Changes
1
Hide whitespace changes
Inline
Side-by-side
dataset.py
View file @
ced520e8
...
...
@@ -88,7 +88,7 @@ class NumpyCSVDataset(Dataset):
np
.
random
.
seed
(
self
.
seed
)
clinical
=
pd
.
read_csv
(
clinical_file
,
dtype
=
str
).
sort_values
(
by
=
[
'patient'
])
clinical
=
pd
.
read_csv
(
clinical_file
).
sort_values
(
by
=
[
'patient'
])
available_files
=
[
f
for
f
in
os
.
listdir
(
data_dir
)
if
f
.
endswith
(
'.npy'
)]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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