Skip to content

Failing on cortex 2x120k #41

@ayan-b

Description

@ayan-b

Dataset: https://github.com/the-virtual-brain/tvb-data/blob/master/tvb_data/surfaceData/cortex_2x120k.zip

Used code:

import numpy as np

import gdist


file = "cortex_2x120k"

for t in ['l', 'r']:
    print("Trying " + t)
    vertices = np.loadtxt("data/surface_data/" + file +
                        "/vertices" + t + ".txt", dtype=np.float64)
    triangles = np.loadtxt("data/surface_data/" + file +
                        "/triangles" + t + ".txt", dtype=np.int32)
    source = np.array([0, 1, 2, 3], dtype=np.int32)
    target = np.array([2, 5], dtype=np.int32)
    distance = gdist.compute_gdist(
        vertices,
        triangles,
        source,
        target,
    )
    print(distance)

Related to #22

While only using the C++ library:

Assertion failed!
File: geodesic_mesh.h, Line 158

Expression: vertex_index < num_vertices

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions