Skip to content
Snippets Groups Projects
Commit fdf9f090 authored by Baptiste Bauvin's avatar Baptiste Bauvin
Browse files

CSV database working

parent 6897a675
No related branches found
No related tags found
No related merge requests found
...@@ -333,6 +333,7 @@ def getClassicDBcsv(views, pathF, nameDB, NB_CLASS, askedLabelsNames, randomStat ...@@ -333,6 +333,7 @@ def getClassicDBcsv(views, pathF, nameDB, NB_CLASS, askedLabelsNames, randomStat
if viewFileName[-6:] != "-s.csv": if viewFileName[-6:] != "-s.csv":
viewMatrix = np.genfromtxt(viewFile, delimiter=delimiter) viewMatrix = np.genfromtxt(viewFile, delimiter=delimiter)
viewDset = datasetFile.create_dataset("View" + str(viewIndex), viewMatrix.shape, data=viewMatrix) viewDset = datasetFile.create_dataset("View" + str(viewIndex), viewMatrix.shape, data=viewMatrix)
del viewMatrix
viewDset.attrs["name"] = viewFileName[:-4] viewDset.attrs["name"] = viewFileName[:-4]
viewDset.attrs["sparse"] = False viewDset.attrs["sparse"] = False
else: else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment