bluecellulab.exceptions

Custom exceptions used within the package.

Functions

error_context(context_info)

Use when the attribute/lookup error needs more context information.

Exceptions

BluecellulabError

Class to identify bluecellulab specific exceptions.

ConfigError

Error due to invalid settings in BlueConfig.

ExtraDependencyMissingError(dependency_name)

Raise when an extra dependency is missing.

MissingSonataPropertyError

Raise when a property is missing from SONATA.

NeuronEvalError

Raise when an unsupported code string is sent to NEURON.

TargetDoesNotExist

It is raised upon calling a target that does not exist.

UndefinedRNGException

Raise when the RNG mode to be used does not exist.

UnsteadyCellError

Raise when the cell gives undesired spikes.

exception bluecellulab.exceptions.BluecellulabError[source]

Class to identify bluecellulab specific exceptions.

exception bluecellulab.exceptions.ConfigError[source]

Error due to invalid settings in BlueConfig.

exception bluecellulab.exceptions.ExtraDependencyMissingError(dependency_name)[source]

Raise when an extra dependency is missing.

exception bluecellulab.exceptions.MissingSonataPropertyError[source]

Raise when a property is missing from SONATA.

exception bluecellulab.exceptions.NeuronEvalError[source]

Raise when an unsupported code string is sent to NEURON.

exception bluecellulab.exceptions.TargetDoesNotExist[source]

It is raised upon calling a target that does not exist.

exception bluecellulab.exceptions.UndefinedRNGException[source]

Raise when the RNG mode to be used does not exist.

exception bluecellulab.exceptions.UnsteadyCellError[source]

Raise when the cell gives undesired spikes.

bluecellulab.exceptions.error_context(context_info)[source]

Use when the attribute/lookup error needs more context information.

Useful for NEURON/HOC attribute/lookup errors. E.g. ‘AttributeError: ‘hoc.HocObject’ object has no attribute’ or LookupError: ‘X’ is not a defined hoc variable name messages are often not very helpful. Extra context information can be added to the error message.

Parameters:

context_info (str)