Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

One thing to bear in mind with the data in the Python interface, the detector data is almost always returns as a numpy array of an integral type. For example, after getting a waveform of Acqiris data, if you were to print it out during an interactive Python session, you might see

waveform
array([234,53,5,...,324], dtype=np.int16])

Note the dtype, this data is two byte signed integers. In particular if a value of the waveform is over 32000 and you add 10000 to it, those values will wrap around and become negative. It may be a good idea, before doing any math with the data, to convert it to floats:

waveform = npwaveform.arrayastype(waveform, np.float)

Hdf5

Topics specific to hdf5

...