rainbow.peaks_from_asm

peaks_from_asm(measurement)[source]

Reads the integrated peaks of one ASM measurement document.

The reader from_asm() and sequence_from_asm() use for each measurement, for a caller holding a measurement document of its own: one channel of one injection, walked out of a document it read itself, or an index document whose cubes carry no values. The peaks are read whether or not the measurement’s trace could be rebuilt.

Parameters:

measurement (dict) – One measurement document of an ASM liquid- or gas-chromatography document.

Returns:

The peak group, the shape of an entry of DataDirectory.peaks: signal, wavelength, description and channel_file name the channel, detector and metadata describe it as its DataFile would, peaks holds the first integration’s peaks and processing its provenance, and alternates holds every further integration, in document order. None when the measurement carries no peaks.

Return type:

dict