fixed bug (not clear how it escaped up to now)

This commit is contained in:
Philip Eisenlohr 2018-12-07 22:06:47 -05:00
parent ac45a9e2d3
commit 18b791bb63
1 changed files with 2 additions and 2 deletions

View File

@ -494,7 +494,7 @@ class ASCIItable():
1))) 1)))
use = np.array(columns) if len(columns) > 0 else None use = np.array(columns) if len(columns) > 0 else None
self.tags = list(np.array(self.tags)[use]) # update labels with valid subset self.tags = list(np.array(self.__IO__['tags'])[use]) # update labels with valid subset
self.data = np.loadtxt(self.__IO__['in'],usecols=use,ndmin=2) self.data = np.loadtxt(self.__IO__['in'],usecols=use,ndmin=2)
# self.data = np.genfromtxt(self.__IO__['in'],dtype=None,names=self.tags,usecols=use) # self.data = np.genfromtxt(self.__IO__['in'],dtype=None,names=self.tags,usecols=use)