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

Check against PurePath interface

parent 149b70ac
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, PurePath):
data_dir = Path(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