def test_trunk_vectors(): ret = _nf.trunk_vectors(SIMPLE_TRUNK) assert_array_equal(ret[0], [0., -1., 0.]) assert_array_equal(ret[1], [1., 0., 0.]) assert_array_equal(ret[2], [-1., 0., 0.]) assert_array_equal(ret[3], [0., 1., 0.]) ret = _nf.trunk_vectors(SIMPLE_TRUNK, neurite_type=NeuriteType.axon) assert_array_equal(ret[0], [0., -1., 0.])