magres.format

magres.format.check_units(d)

Verify that given units for a particular tag are correct.

magres.format.get_version(file_contents)

Look for and parse the magres file format version line

magres.format.parse_atoms_block(block)

Parse atoms block into data dictionary given list of record tuples.

magres.format.parse_block(block)

Parse block contents into a series of (tag, data) records

magres.format.parse_blocks(file_contents)

Parse series of XML-like deliminated blocks into a list of (block_name, contents) tuples

magres.format.parse_generic_block(block)

Parse any other block into data dictionary given list of record tuples.

magres.format.parse_magres_block(block)

Parse magres block into data dictionary given list of record tuples.

magres.format.write_magres_block(data)

Write out a <magres> block from its dictionary representation

class magres.format.MagresFile(data=None)

Previous topic

Python modules

Next topic

magres.atoms

This Page