issue807.py 272 B

12345678910
  1. import neo
  2. import numpy as np
  3. time = np.array([0, 1, 2])
  4. val = np.array([2, 3, 2])
  5. id = np.array(['a', 'b', 'c'])
  6. print(time.shape)
  7. print(val.shape)
  8. print(id.shape)
  9. irsig0 = neo.IrregularlySampledSignal(time, val, units='mV', time_units='ms')
  10. irsig0.array_annotate(id=id)