allensdk.config.model.description module¶
- class allensdk.config.model.description.Description[source]¶
Bases:
object
- fix_unary_sections(section_names=None)[source]¶
Wrap section contents that don’t have the proper array surrounding them in an array.
- Parameters:
- section_nameslist of strings, optional
Keys of sections that might not be in array form.
- is_empty()[source]¶
Check if anything is in the object.
- Returns:
- boolean
true if self.data is missing or empty
- unpack(data, section=None)[source]¶
Read the manifest and other stand-alone configuration structure, or insert a configuration object into a section of an existing configuration.
- Parameters:
- datadict
A configuration object including top level sections, or an configuration object to be placed within a section.
- sectionstring, optional.
If this is present, place data within an existing section array.