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
2b1a6b2c
Commit
2b1a6b2c
authored
Mar 12, 2020
by
Alessia Marcolini
Browse files
Check against PurePath interface
parent
149b70ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
dataset.py
View file @
2b1a6b2c
import
os
from
pathlib
import
Path
from
pathlib
import
Path
,
PurePath
import
numpy
as
np
import
pandas
as
pd
...
...
@@ -77,7 +77,7 @@ class NumpyCSVDataset(Dataset):
):
super
(
NumpyCSVDataset
,
self
).
__init__
()
if
not
isinstance
(
data_dir
,
Path
):
if
not
isinstance
(
data_dir
,
Pure
Path
):
data_dir
=
Path
(
data_dir
)
self
.
data_dir
=
data_dir
...
...
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