Python LMF library
 All Classes Namespaces Files Functions Variables
Functions
pylmflib.pylmflib.output.mdf Namespace Reference

Functions

def mdf_write
 Write an MDF file. More...
 
def parse_list
 Parse a group of markers and write them into an MDF file. More...
 
def write_line
 Write a line into an MDF file. More...
 

Function Documentation

def pylmflib.pylmflib.output.mdf.mdf_write (   object,
  filename,
  lmf2mdf = lmf_mdf,
  order = mdf_order 
)

Write an MDF file.

Parameters
objectThe LMF instance to convert into MDF output format.
filenameThe name of the MDF file to write with full path, for instance 'user/output.txt'.
lmf2mdfA Python dictionary describing the mapping between LMF representation and MDF markers. Default value is 'lmf_mdf' dictionary defined in 'pylmflib/config/mdf.py'. Please refer to it as an example.
orderA Python list defining the order in which MDF markers must be written, for instance ["lx", "ps"]. Default value is 'mdf_order' list defined in 'pylmflib/config/mdf.py'.

Definition at line 10 of file mdf.py.

def pylmflib.pylmflib.output.mdf.parse_list (   mdf_file,
  lmf2mdf,
  marker,
  object 
)

Parse a group of markers and write them into an MDF file.

Parameters
mdf_fileThe file to write in.
lmf2mdfA Python dictionary describing the mapping between LMF representation and MDF markers.
markerThe MDF marker.
objectThe current processed object.

Definition at line 34 of file mdf.py.

def pylmflib.pylmflib.output.mdf.write_line (   mdf_file,
  marker,
  value 
)

Write a line into an MDF file.

Parameters
mdf_fileThe file to write in.
markerThe MDF marker.
valueThe corresponding value.

Definition at line 52 of file mdf.py.