def read(filename, data_wrapper=DataWrapper):
data = np.loadtxt(filename)<EOL>if len(np.shape(data)) == <NUM_LIT:1>:<EOL><INDENT>data = np.reshape(data, (<NUM_LIT:1>, -<NUM_LIT:1>))<EOL><DEDENT>data = data[:, [X, Y, Z, R, TYPE, ID, P]]<EOL>return data_wrapper(data, '<STR_LIT>', None)<EOL>
Read an SWC file and return a tuple of data, format.