Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
self.assertRaises(RuntimeError, lambda: Morphology("mars"))
def setUp(self):
self.morphology = Morphology(morphology_path)
def test_uris(self):
uris = self.circuit.morphology_uris([1, 2, 3])
for uri in uris:
Morphology(uri)
lambda: Morphology(morphology_path, 'foo'))
transform = numpy.array([[2, 2], [2, 2]])
lambda: Morphology(morphology_path, transform))
transform = numpy.array([[1, 0, 0, 7],
def test_simple(self):
morphology = Morphology(morphology_path)
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))
def setUp(self):
self.morphology = Morphology(morphology_path)
self.section = self.morphology.section(1)
def setUp(self):
self.morphology = Morphology(morphology_path)