You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(ga,ak,mk,rk) paths are set, but they points to missing file, in this instance.
main.m of this App then decide if it has dki input or not simply by looking for the config.json key like this
% dki
if isfield(config,dki(1))
for kk = 1:length(dki)
measures{ii+kk} = dir(config.(dki{kk}));
end
end_index = [end_index end_index+length(dki)];
scale_index = [scale_index ["false","false","false","false"]];
value_units = [value_units ["unitless","um^2/msec","um^2/msec","um^2/msec"]];
inverse_units = [inverse_units ["unitless","msec/um^2","msec/um^2","um^2/msec"]];
end
The isfield(config,dki(1)) will always evaluate to true because config.ga will always set even though the file might not actually exist. This results in generating an invalid measures structure.
K>> data{4}
ans =
struct with fields:
name: 'rd.nii.gz'
folder: '/home/hayashis/syncthing/git/app-tractanalysisprofiles/testdata/tensor'
date: '04-Apr-2020 20:31:58'
bytes: 944065
isdir: 0
datenum: 7.3789e+05
K>> data{5}
ans =
0×1 empty struct array with fields:
name
folder
date
bytes
isdir
datenum
This then leads to the following error
Error using strlength (line 28)
Not enough input arguments.
Error in build_nifti_data (line 5)
Error in main (line 78)
I believe the main.m's if statement should be updated to actually look for the existence of the nii.gz as (ga,ak,mk,rk) are optional files within tensor datatype, so they might not exist at runtime.
The text was updated successfully, but these errors were encountered:
Maria is trying to feed tensor input to v1.10 of this App.
This tensor came from mrtrix3-act App, and it looks like it has the tensor files (fa/md/rd/ad) but not dki outputs (ga,mk,ak,rk).
Although dki files are note there, the App is designed to set file paths for both tensor and dki in
config.json
The config.json for this instance looks like this
(ga,ak,mk,rk) paths are set, but they points to missing file, in this instance.
main.m of this App then decide if it has dki input or not simply by looking for the config.json key like this
The
isfield(config,dki(1))
will always evaluate to true becauseconfig.ga
will always set even though the file might not actually exist. This results in generating an invalid measures structure.This then leads to the following error
I believe the main.m's if statement should be updated to actually look for the existence of the nii.gz as (ga,ak,mk,rk) are optional files within tensor datatype, so they might not exist at runtime.
The text was updated successfully, but these errors were encountered: