pmotools.pmo_engine.pmo_reader module

class pmotools.pmo_engine.pmo_reader.PMOReader[source]

Bases: object

A class for reading in PMO from files

static combine_multiple_pmos(pmos: list[dict])[source]

Combine multiple PMOs into one pmo

Parameters:

pmos – a list of PMO objects

Returns:

a combined PMO

static read_in_pmo(fnp: str | PathLike[str])[source]

Read in a PMO file, can either be compressed(.gz) or uncompressed

Parameters:

fnp – the file name path of the PMO file to read in

Returns:

a PMO like object

static read_in_pmos(fnps: list[str] | list[os.PathLike[str]])[source]

Read in a PMO file, can either be compressed(.gz) or uncompressed

Parameters:

fnps – the file name path of the PMO file to read in

Returns:

a list of PMO like object