importer Package
importer Package
import_array_swc Module
-
class
NewSWCLoader[source] Bases:
object-
classmethod
load_swc_set(src)[source] Naive implementation, that doesn’t take account of interleaving of nodes
-
classmethod
load_swc_single(src, name=None)[source]
-
classmethod
-
_load_swc_single_tree(*args, **kwargs)[source]
import_tree_dictionary Module
-
class
DictionaryLoader[source] Bases:
object-
classmethod
load(morph_dict, name=None, metadata=None)[source] Load a morphology from a recursive dictionary such as: {‘root’: {‘length’: 20, ‘diam’: 20, ‘sections’:
- [
{‘absangle’: 120, ‘length’: 40, ‘diam’: 5, ‘region’: ‘dendrite’}, {‘absangle’: 240, ‘length’: 40, ‘diam’: 5, ‘sections’:
- [
- {‘region’: ‘dendrite’, ‘diam’: 5, ‘relangle’: 240, ‘length’: 40}
], ‘region’: ‘dendrite’},
{‘absangle’: 5, ‘length’: 500, ‘diam’: 0.29999999999999999, ‘region’: ‘axon’}],
‘region’: ‘soma’}}
-
classmethod