bluecellulab.exceptions¶
Custom exceptions used within the package.
Functions
|
Use when the attribute/lookup error needs more context information. |
Exceptions
Class to identify bluecellulab specific exceptions. |
|
Error due to invalid settings in BlueConfig. |
|
|
Raise when an extra dependency is missing. |
Raise when a property is missing from SONATA. |
|
Raise when an unsupported code string is sent to NEURON. |
|
It is raised upon calling a target that does not exist. |
|
Raise when the RNG mode to be used does not exist. |
|
Raise when the cell gives undesired spikes. |
- exception bluecellulab.exceptions.BluecellulabError[source]¶
Class to identify bluecellulab specific exceptions.
- 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)