fixed bug in tuple assignment

This commit is contained in:
Tias Maiti 2014-07-25 17:49:22 +00:00
parent bee6e0b09b
commit e01630e073
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ for file in files:
skip = int(file['input'].readline().split()[0])
for i in xrange(skip): headers = file['input'].readline().split()
data = numpy.loadtxt(file['input'],usecols=numpy.array(options.data+([options.weight] if options.weight != None else [])-1))
data = numpy.loadtxt(file['input'],usecols=numpy.array(options.data+((options.weight,) if options.weight != None else ()))-1)
file['input'].close() # close input ASCII table
for i in (0,1): # check data range for x and y