allensdk.config.model.description_parser module

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

Bases: object

log = <Logger allensdk.config.model.description_parser (WARNING)>
parser_for_extension(self, filename)[source]

Choose a subclass that can read the format.

Parameters:
filename : string

For the extension.

Returns:
DescriptionParser

Appropriate subclass.

read(self, 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(self, data_string, description=None, section=None, header=None)[source]

Parse data needed for a simulation from a string.

write(self, filename, description)[source]

Save the configuration.

Parameters:
filename : string

Name of the file to write.