Guest User

Untitled

a guest
May 20th, 2018
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. import sys
  2. import struct
  3. import numpy as np
  4.  
  5. tckFile = open("./5M1-2_filtered.tck", 'rb')
  6. # outfile = open(sys.argv[2], 'w')
  7.  
  8. for i in range(10):
  9. d = tckFile.readline()
  10. print(d)
  11. print(d.isdigit())
  12. # print(d.isnumeric())
  13.  
  14. # read the tractography data
  15.  
  16. tckFile.seek(632, 0)
  17. # track = tckFile.read()
  18. ary = np.fromfile(tckFile, np.float32, -1)
Add Comment
Please, Sign In to add comment