fork download
  1. # your code goes here
  2. import numpy as np
  3.  
  4. dt = 'i8,i8,i8,i8,i8,i8,i8,i8,i8,i8,i8,i8,i8,f8,i8,i8,f8,f8,f8,a50,a50,a50,a50'
  5. data = [[45608L, 0L, 46115L, 11952L, 11952L, 0, 0, 0, 0, 0, 11951L, 11951L, 46176L, 9.0, 0, 1, 1407340577.0, 1407340577.0, 0, 'Simulation Movement', 'planned', '', ''],]
  6.  
  7. print(np.array(map(tuple, data),dt))
Success #stdin #stdout 0.14s 25344KB
stdin
Standard input is empty
stdout
[ (45608L, 0L, 46115L, 11952L, 11952L, 0L, 0L, 0L, 0L, 0L, 11951L, 11951L, 46176L, 9.0, 0L, 1L, 1407340577.0, 1407340577.0, 0.0, 'Simulation Movement', 'planned', '', '')]