Skip to content

Instantly share code, notes, and snippets.

@cfriedline
Created January 29, 2015 16:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cfriedline/9b462b1f4696b2e6dcc3 to your computer and use it in GitHub Desktop.
Save cfriedline/9b462b1f4696b2e6dcc3 to your computer and use it in GitHub Desktop.
data = np.zeros((rows, cols), dtype=np.int16)
index = 0
for line in open("ms.txt"):
print "at %d/%d" % (index, rows)
if index > 0:
data[index] = line.split("\t")
index += 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment