cellcomplex.utils.utils_txt module

This module provide a simple way to serialize elements in a txt file

cellcomplex.utils.utils_txt.property_to_xml(doc, prop, description, key_type='', key_description='', value_type='', value_description='')[source]

return an xml description of this dictionary

cellcomplex.utils.utils_txt.read_description(f)[source]

Read the description in a stream.

cellcomplex.utils.utils_txt.write_description(f, description)[source]

Add a description paragraph to a given stream if description is not empty

cellcomplex.utils.utils_txt.xml_to_property(property_node)[source]

retrieve the property structure from an xml node returns property,(description,(key_type,key_descr),(value_type,value_descr))