Commit 2b1a6b2c authored by Alessia Marcolini's avatar Alessia Marcolini
Browse files

Check against PurePath interface

parent 149b70ac
import os import os
from pathlib import Path from pathlib import Path, PurePath
import numpy as np import numpy as np
import pandas as pd import pandas as pd
...@@ -77,7 +77,7 @@ class NumpyCSVDataset(Dataset): ...@@ -77,7 +77,7 @@ class NumpyCSVDataset(Dataset):
): ):
super(NumpyCSVDataset, self).__init__() super(NumpyCSVDataset, self).__init__()
if not isinstance(data_dir, Path): if not isinstance(data_dir, PurePath):
data_dir = Path(data_dir) data_dir = Path(data_dir)
self.data_dir = data_dir self.data_dir = data_dir
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment