fixed PEP line continuation warning

This commit is contained in:
Philip Eisenlohr 2017-07-31 10:02:58 -04:00
parent c8222d6f82
commit 68493a00f5
1 changed files with 1 additions and 6 deletions

View File

@ -101,12 +101,7 @@ for name in filenames:
outputAlive = True outputAlive = True
while outputAlive and table.data_read(): # read next data line of ASCII table while outputAlive and table.data_read(): # read next data line of ASCII table
try: try:
table.data_append( table.data_append(data[np.argwhere(np.all((map(float,table.data[myLink:myLink+myLinkDim]) - index)==0,axis=1))[0]]) # add data of first matching line
data[
np.argwhere(np.all(
(map(float,table.data[myLink:myLink+myLinkDim]) - index) == 0,
axis = 1))[0]
]) # add data from first matching line
except IndexError: except IndexError:
table.data_append(np.nan*np.ones_like(data[0])) # or add NaNs table.data_append(np.nan*np.ones_like(data[0])) # or add NaNs
outputAlive = table.data_write() # output processed line outputAlive = table.data_write() # output processed line