Skip to content

Instantly share code, notes, and snippets.

@rb2k
Created November 22, 2011 17:04
Show Gist options
  • Save rb2k/1386213 to your computer and use it in GitHub Desktop.
Save rb2k/1386213 to your computer and use it in GitHub Desktop.
import numpy
#your regular array
myarray = [123, 221, 3, 16, 199, 0]
#convert that to 32 bit integers
tmp=numpy.array(myarray, numpy.int32)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment