nmrglue.fileio.bruker.read_pprog
- nmrglue.fileio.bruker.read_pprog(filename)[source]
Read a Bruker pulse program (pulseprogram) file.
Resultsing dictionary contains the following keys:
key
description
var
dictionary of variables assigned in pulseprogram
incr
list of lists containing increment times
loop
list of loop multipliers
phase
list of lists containing phase elements
ph_extra
list of lists containing comments at the end of phase lines
The incr,phase and ph_extra lists match up with loop list. For example incr[0],phase[0] and ph_extra[0] are all increment and phase commands with comments which occur during loop 0 which has loop[0] steps.
- Parameters
- filenamestr
Filename of pulseprogram file to read from,
- Returns
- dicdict
A dictionary with keys described above.
See also
write_pprog
Write a Bruker pulse program to file.