InverseTampere/TreeQSM

Triangulation error stops make_models

ashenkin opened this issue · 1 comments

Hey Pasi,

Great that you put this on github - thanks so much. I'm getting familiar with your new code, and while running a job overnight, make_models_parallel resulted in a triangulation error, and stopped the whole process. It'd be nice if there were a flag we could set to log errors, but not let them stop long-running jobs?

Thanks,
Allie

Here's the error:

Error using initial_boundary_curve (line 99)
Index exceeds matrix dimensions.

Error in curve_based_triangulation (line 78)
        Curve = initial_boundary_curve(PSection,TriaWidth);

Error in tree_data (line 153)
            triangulation = curve_based_triangulation(Stem,TriaHeight,TriaWidth);

Error in treeqsm (line 369)
                        [treedata,triangulation] =
                        tree_data(cylinder,branch,inputs,trunk,dis);

Error in make_models_parallel>(parfor body) (line 127)
            QSM = treeqsm(P,inputs);

Error in make_models_parallel (line 115)
    parfor j = 1:N % generate N models per input

Caused by:
    Index exceeds matrix dimensions.

Hey Pasi,

Great that you put this on github - thanks so much. I'm getting familiar with your new code, and while running a job overnight, make_models_parallel resulted in a triangulation error, and stopped the whole process. It'd be nice if there were a flag we could set to log errors, but not let them stop long-running jobs?

Thanks,
Allie

Here's the error:

Error using initial_boundary_curve (line 99)
Index exceeds matrix dimensions.

Error in curve_based_triangulation (line 78)
        Curve = initial_boundary_curve(PSection,TriaWidth);

Error in tree_data (line 153)
            triangulation = curve_based_triangulation(Stem,TriaHeight,TriaWidth);

Error in treeqsm (line 369)
                        [treedata,triangulation] =
                        tree_data(cylinder,branch,inputs,trunk,dis);

Error in make_models_parallel>(parfor body) (line 127)
            QSM = treeqsm(P,inputs);

Error in make_models_parallel (line 115)
    parfor j = 1:N % generate N models per input

Caused by:
    Index exceeds matrix dimensions.

Hi, I meet the same error? have u solve it?