allensdk.config.model.formats.pycfg_description_parser module

class allensdk.config.model.formats.pycfg_description_parser.PycfgDescriptionParser[source]

Bases: allensdk.config.model.description_parser.DescriptionParser

log = <logging.Logger object>
read(pycfg_file_path, description=None, section=None, **kwargs)[source]

Read a serialized description from a Python (.pycfg) file.

Parameters:
filename : string

Name of the .pycfg file.

Returns:
Description

Configuration object.

read_string(python_string, description=None, section=None, **kwargs)[source]

Read a serialized description from a Python (.pycfg) string.

Parameters:
python_string : string

Python string with a serialized description.

Returns:
Description

Configuration object.

write(filename, description)[source]

Write the description to a Python (.pycfg) file.

Parameters:
filename : string

Name of the file to write.

write_string(description)[source]

Write the description to a pretty-printed Python string.

Parameters:
description : Description

Configuration object to write.