When make_models or make_models_parallel encounters a tree that it cannot successfully model, it returns an empty value. This results in QSM == [ ], the assignment of a = max(size(QSM)) thus returns 0, and this error is thrown, halting the entire process when multiple trees are being modelled.
Modelling tree 1/5513 (ti_10_10_T0):
Starting parallel pool (parpool) using the 'local' profile ...
Connected to the parallel pool (number of workers: 8).
Incomplete run!!
Incomplete run!!
Incomplete run!!
Incomplete run!!
Incomplete run!!
Assignment between unlike types is not allowed.
Error in make_models_parallel (line 218)
QSMs(m:m+a-1) = QSM;
Error in run_qsm (line 33)
QSMs = make_models_parallel('paracou', 'QSMs_1', 5,
inputs);
Error in run (line 91)
evalin('caller', strcat(script, ';'));
When
make_modelsormake_models_parallelencounters a tree that it cannot successfully model, it returns an empty value. This results inQSM == [ ], the assignment ofa = max(size(QSM))thus returns0, and this error is thrown, halting the entire process when multiple trees are being modelled.