fixed nasty bug cause strange behavior for voronoi tessellation

This commit is contained in:
Martin Diehl 2014-08-06 19:32:26 +00:00
parent 649e637561
commit 1402527f48
1 changed files with 1 additions and 1 deletions

View File

@ -258,7 +258,7 @@ class ASCIItable():
pass # assume/hope we are at data start already...
self.data = numpy.loadtxt(self.__IO__['in'], usecols=indices)
if len(self.data.shape) < 2: # single column
self.data = self.data.reshape(self.data.shape[0],1)
self.data = self.data.reshape(1,self.data.shape[0])
return self.data.shape
# ------------------------------------------------------------------