allensdk.config.model.description_parser module

class allensdk.config.model.description_parser.DescriptionParser[source]

Bases: object

log = <logging.Logger object>
parser_for_extension(filename)[source]

Choose a subclass that can read the format.

Parameters:
filename : string

For the extension.

Returns:
DescriptionParser

Appropriate subclass.

read(file_path, description=None, section=None, **kwargs)[source]

Parse data needed for a simulation.

Parameters:
description : dict

Configuration from parsing previous files.

section : string, optional

What configuration section to read it into if the file does not specify.

read_string(data_string, description=None, section=None, header=None)[source]

Parse data needed for a simulation from a string.

write(filename, description)[source]

Save the configuration.

Parameters:
filename : string

Name of the file to write.