Fixed the dataset loading so that it returns a correctly named Dataset.
This commit is contained in:
parent
f612dda72f
commit
33c51505c4
|
@ -473,11 +473,11 @@ def read_ftsv(fd):
|
||||||
|
|
||||||
# Create dataset of specified type
|
# Create dataset of specified type
|
||||||
if type == 'category':
|
if type == 'category':
|
||||||
ds = CategoryDataset(matrix, dims)
|
ds = CategoryDataset(matrix, dims, name)
|
||||||
elif type == 'network':
|
elif type == 'network':
|
||||||
ds = GraphDataset(matrix, dims)
|
ds = GraphDataset(matrix, dims, name)
|
||||||
else:
|
else:
|
||||||
ds = Dataset(matrix, dims)
|
ds = Dataset(matrix, dims, name)
|
||||||
|
|
||||||
return ds
|
return ds
|
||||||
|
|
||||||
|
|
Reference in New Issue