The Virtual Brain Project

Table Of Contents

Previous topic

lems Package

Next topic

model Package

This Page

base Package

@author: Gautham Ganapathy @organization: LEMS (http://neuroml.org/lems/, https://github.com/organizations/LEMS) @contact: gautham@lisphacker.org

base

PyLEMS base class.

@author: Gautham Ganapathy @organization: LEMS (http://neuroml.org/lems/, https://github.com/organizations/LEMS) @contact: gautham@lisphacker.org

class tvb.dsl.NeuroML.lems.base.base.LEMSBase[source]

Bases: builtins.object

Base object for PyLEMS.

copy()[source]
toxml()[source]

errors

Error classes.

@author: Gautham Ganapathy @organization: LEMS (http://neuroml.org/lems/, https://github.com/organizations/LEMS) @contact: gautham@lisphacker.org

exception tvb.dsl.NeuroML.lems.base.errors.LEMSError(message, *params, **key_params)[source]

Bases: builtins.Exception

Base exception class.

message = None

Error message @type: string

exception tvb.dsl.NeuroML.lems.base.errors.ModelError(message, *params, **key_params)[source]

Bases: tvb.dsl.NeuroML.lems.base.errors.LEMSError

Exception class to signal errors in creating the model.

exception tvb.dsl.NeuroML.lems.base.errors.ParseError(message, *params, **key_params)[source]

Bases: tvb.dsl.NeuroML.lems.base.errors.LEMSError

Exception class to signal errors found during parsing.

exception tvb.dsl.NeuroML.lems.base.errors.SimBuildError(message, *params, **key_params)[source]

Bases: tvb.dsl.NeuroML.lems.base.errors.LEMSError

Exception class to signal errors in building the simulation.

exception tvb.dsl.NeuroML.lems.base.errors.SimError(message, *params, **key_params)[source]

Bases: tvb.dsl.NeuroML.lems.base.errors.LEMSError

Exception class to signal errors in simulation.

exception tvb.dsl.NeuroML.lems.base.errors.StackError(message, *params, **key_params)[source]

Bases: tvb.dsl.NeuroML.lems.base.errors.LEMSError

Exception class to signal errors in the Stack class.

map

Map class.

@author: Gautham Ganapathy @organization: LEMS (http://neuroml.org/lems/, https://github.com/organizations/LEMS) @contact: gautham@lisphacker.org

class tvb.dsl.NeuroML.lems.base.map.Map(*params, **key_params)[source]

Bases: collections.OrderedDict, tvb.dsl.NeuroML.lems.base.base.LEMSBase

Map class.

Same as dict, but iterates over values.

stack

Stack class.

@author: Gautham Ganapathy @organization: LEMS (http://neuroml.org/lems/, https://github.com/organizations/LEMS) @contact: gautham@lisphacker.org

class tvb.dsl.NeuroML.lems.base.stack.Stack[source]

Bases: tvb.dsl.NeuroML.lems.base.base.LEMSBase

Basic stack implementation.

is_empty()[source]

Checks if the stack is empty.

@return: True if the stack is empty, otherwise False. @rtype: Boolean

pop()[source]

Pops a value off the top of the stack.

@return: Value popped off the stack. @rtype: *

@raise StackError: Raised when there is a stack underflow.

push(val)[source]

Pushed a value onto the stack.

@param val: Value to be pushed. @type val: *

stack = None

List used to store the stack contents. @type: list

top()[source]

Returns the value off the top of the stack without popping.

@return: Value on the top of the stack. @rtype: *

@raise StackError: Raised when there is a stack underflow.

util

PyLEMS utility classes / functions

@author: Gautham Ganapathy @organization: LEMS (http://neuroml.org/lems/, https://github.com/organizations/LEMS) @contact: gautham@lisphacker.org

tvb.dsl.NeuroML.lems.base.util.make_id()[source]
tvb.dsl.NeuroML.lems.base.util.merge_lists(l, base)[source]

Merge in undefined list entries from given list.

@param l: List to be merged into. @type l: list

@param base: List to be merged into. @type base: list

tvb.dsl.NeuroML.lems.base.util.merge_maps(m, base)[source]

Merge in undefined map entries from given map.

@param m: Map to be merged into. @type m: lems.util.Map

@param base: Map to be merged into. @type base: lems.util.Map

tvb.dsl.NeuroML.lems.base.util.validate_lems(file_name)[source]