Skip to content

Instantly share code, notes, and snippets.

@4u9u5tsong
Created March 24, 2015 18:26
Show Gist options
  • Save 4u9u5tsong/447133da601b3486762f to your computer and use it in GitHub Desktop.
Save 4u9u5tsong/447133da601b3486762f to your computer and use it in GitHub Desktop.
genfromtxt read from a pipe with subprocess
inpstream = subprocess.check_output(cmdstr).split('\n')
data = sp.genfromtxt(inpstream, dtype=np.uint64)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment