Commit 811cc8dd authored by jayd1860's avatar jayd1860
Browse files

v1.70.1

-- Fix menu item "Load Stim from TSV" file.
-- Fix ProbeClass converting SD probe data to ProbeClass - instead of SD.refpts it should be SD.Landmarks
parent e51d5130
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -220,17 +220,17 @@ classdef NirsClass < AcqDataClass & FileLoadSaveClass
                err = 0;
                err = 0;
            end
            end
            
            
            if isproperty(fdata,'t')
            if isproperty(fdata,'t') && isproperty(fdata,'d') 
                obj.t = fdata.t;
                obj.t = fdata.t;
                if ~isempty(obj.t)
                if ~isempty(obj.t)
                    obj.errmargin = min(diff(obj.t))/10;
                    obj.errmargin = min(diff(obj.t))/10;
                elseif err == 0
                elseif err == 0
                    err = -3;
                    err = -3;
                end
                end
            elseif err == 0
                if length(fdata.t) ~= size(fdata.d,1) && err == 0
                    err = -3;
                    err = -3;
                end
                end
            if length(fdata.t) ~= size(fdata.d,1) && err == 0
            elseif err == 0
                err = -3;
                err = -3;
            end
            end
        end
        end
+8 −5
Original line number Original line Diff line number Diff line
@@ -55,12 +55,15 @@ classdef ProbeClass < FileLoadSaveClass
                    else
                    else
                        obj.detectorPos3D  = SD.DetPos;
                        obj.detectorPos3D  = SD.DetPos;
                    end
                    end
                    if isfield(SD,'refpts')
                    if isfield(SD,'Landmarks3D')
                        obj.landmarkPos3D = SD.refpts.pos;
                        obj.landmarkPos3D = SD.Landmarks3D.pos;
                        obj.landmarkLabels = SD.refpts.labels;
                        obj.landmarkLabels = SD.Landmarks3D.labels;
                        if isfield(SD,'refpts2D')
                        if isfield(SD,'Landmarks2D')
                            obj.landmarkPos2D = SD.refpts2D.pos;
                            obj.landmarkPos2D = SD.Landmarks2D.pos;
                        end
                        end
                    else
                        obj.landmarkPos3D = SD.DummyPos;
                        obj.landmarkLabels = SD.Landmarks3D.labels;
                    end
                    end
                    obj.frequencies  = 1;
                    obj.frequencies  = 1;
                    obj.timeDelays  = 0;
                    obj.timeDelays  = 0;
+1 −1
Original line number Original line Diff line number Diff line
1.3.0
1.3.1
+2 −5
Original line number Original line Diff line number Diff line
@@ -2195,11 +2195,8 @@ maingui.dataTree.currElem.ExportStim();




% --------------------------------------------------------------------
% --------------------------------------------------------------------
function menuItemReloadStim_Callback(~, ~, handles)
function menuItemReloadStim_Callback(hObject, ~, handles)
global maingui
global maingui
[iGroup, iSubj, iSess, iRun] = maingui.dataTree.GetCurrElemIndexID();
maingui.dataTree.ReloadStim();
maingui.dataTree.ReloadStim();
Update('DataTreeClass',[iGroup, iSubj, iSess, iRun]);
DisplayData(handles, hObject);
DisplayStim(handles);

+1 −1
Original line number Original line Diff line number Diff line
1.70.0
1.70.1