issue807b.py 301 B

1234567891011
  1. import neo
  2. import numpy as np
  3. import quantities as pq
  4. time = np.array([0, 1, 2])
  5. val = np.array([2, 3, 2])
  6. id = np.array(['a', 'b', 'c'])
  7. print(time.shape)
  8. print(val.shape)
  9. print(id.shape)
  10. sig0 = neo.AnalogSignal(val, units='mV', sampling_period=1.0*pq.ms, time_units='ms')
  11. sig0.array_annotate(id=id)