perda.analyzer.concat#

perda.analyzer.concat(first, second, gap=1)[source]#

Concatenate two Analyzers sequentially in time.

Variables are matched by cpp_name. Unmatched variables are kept with data from only the run that has them. If the two runs use different timestamp units the ms run is upscaled to us.

Parameters:
  • first (Analyzer) – First analyzer (earlier in time)

  • second (Analyzer) – Second analyzer (appended after first)

  • gap (int) – Gap in timestamp units between the two runs. Default is 1.

Returns:

New Analyzer containing the concatenated data

Return type:

Analyzer

Examples

>>> merged = Analyzer.concat(aly1, aly2)
>>> merged.plot("ams.pack.voltage")