nmrglue.fileio.bruker.write_pprog

nmrglue.fileio.bruker.write_pprog(filename, dic, overwrite=False)[source]

Write a minimal Bruker pulse program to file.

DO NOT TRY TO RUN THE RESULTING PULSE PROGRAM

This pulse program should return the same dictionary when read using read_pprog, nothing else. The pulse program will be nonsense.

Parameters
filenamestr

Filename of file to write pulse program to.

dicdict

Dictionary of pulse program parameters.

overwritebool, optional

True to overwrite an existing file, False will raise a Warning if the file already exists.

See also

read_pprog

Read a Bruker pulse program.