How to use the morphio.neuron.Morphology function in morphio

To help you get started, we’ve selected a few morphio examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github BlueBrain / MorphIO / tests / brain / python / morphology.py View on Github external
        self.assertRaises(RuntimeError, lambda: Morphology("mars"))
github BlueBrain / MorphIO / tests / brain / python / morphology.py View on Github external
def setUp(self):
        self.morphology = Morphology(morphology_path)
github BlueBrain / MorphIO / tests / brain / python / morphology.py View on Github external
def test_uris(self):
        uris = self.circuit.morphology_uris([1, 2, 3])
        for uri in uris:
            Morphology(uri)
github BlueBrain / MorphIO / tests / brain / python / morphology.py View on Github external
                          lambda: Morphology(morphology_path, 'foo'))
        transform = numpy.array([[2, 2], [2, 2]])
github BlueBrain / MorphIO / tests / brain / python / morphology.py View on Github external
                          lambda: Morphology(morphology_path, transform))
        transform = numpy.array([[1, 0, 0, 7],
github BlueBrain / MorphIO / tests / brain / python / morphology.py View on Github external
def test_simple(self):
        morphology = Morphology(morphology_path)
github BlueBrain / MorphIO / tests / brain / python / morphology.py View on Github external
def test_transform(self):
        transform = numpy.array([[1, 0, 0, 7],
                                 [0, 1, 0, 8],
                                 [0, 0, 1, 9],
                                 [0, 0, 0, 1]])
        morphology = Morphology(morphology_path, transform)
        assert(numpy.allclose(morphology.transformation(), transform))
github BlueBrain / MorphIO / tests / brain / python / morphology.py View on Github external
def setUp(self):
        self.morphology = Morphology(morphology_path)
        self.section = self.morphology.section(1)
github BlueBrain / MorphIO / tests / brain / python / morphology.py View on Github external
def setUp(self):
        self.morphology = Morphology(morphology_path)