vallenae.io.TraDatabase.read_wave

TraDatabase.read_wave(trai, time_axis=True, *, raw=False)[source]

Read transient signal for a given TRAI (transient recorder index).

This method is useful in combination with PriDatabase.read_hits, that will store the TRAI in a DataFrame.

Parameters:
  • trai (int) – Transient recorder index (unique key between pridb and tradb)

  • time_axis (bool) – Create the correspondig time axis. Default: True

  • raw (bool) – Return data as ADC values (int16). Default: False

Return type:

Union[Tuple[ndarray, ndarray], Tuple[ndarray, int]]

Returns:

If time_axis is True

  • Array with transient signal

  • Time axis

If time_axis is False

  • Array with transient signal

  • Samplerate