Commit 647f9be8 authored by sreekanthkura7's avatar sreekanthkura7
Browse files

Make circular 2D probe pos range -1 to 1

parent 09e3ad4f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -192,7 +192,7 @@ classdef MetaDataTagsClass < FileLoadSaveClass
            if ~exist('name', 'var') || ~exist('value', 'var')
                retrun
            end                                     
            eval( sprintf('obj.tags.%s = ''%s''', name, value) )   
            eval( sprintf('obj.tags.%s = ''%s'';', name, value) )   
        end
        
        
+0 −1
Original line number Diff line number Diff line
@@ -135,7 +135,6 @@ classdef ProbeClass < FileLoadSaveClass
            [x,y] = pol2cart(azimuth,elevation);      % get plane coordinates
            xy = [x y];
            xy = xy/norm_factor;               % set maximum to unit length
            xy = xy/2 + 0.5;
        end

        
+1 −1
Original line number Diff line number Diff line
@@ -480,7 +480,7 @@ classdef SnirfClass < AcqDataClass & FileLoadSaveClass
        % -------------------------------------------------------
        function err = LoadProbe(obj, fileobj, ~)
            % get lenth unit through class method
            LengthUnit = obj.metaDataTags.Get('LengthUnit').value;
            LengthUnit = obj.metaDataTags.Get('LengthUnit');
            obj.probe = ProbeClass();
            err = obj.probe.LoadHdf5(fileobj, [obj.location, '/probe'], LengthUnit);
            obj.metaDataTags.Set('LengthUnit','mm');
+22 −21
Original line number Diff line number Diff line
@@ -849,27 +849,28 @@ LaunchChildGuiFromMenu('PlotProbeGUI', hObject, GetDatatype(handles), maingui.co

% --------------------------------------------------------------------
function menuItemPlotProbe2_Callback(hObject, ~, handles)
global maingui

procElem = maingui.dataTree.currElem;
% Derived data that we want to save in a Snirf file.
% To save in a snirf file we need to create a SnirfClass
% object. A SnirfClass object is DataTree's implementation 
% of the Snirf format.  
data(1) = procElem.procStream.output.dcAvg; 
data(2) = procElem.procStream.output.dod;

% To complete SnirfClass object arguments we need to supply these
% which we get from acquired data of the first run associated with 
% our procElem.
probe = procElem.acquired.probe;
stim = procElem.acquired.stim;
metaDataTags = procElem.acquired.metaDataTags;

obj = SnirfClass(data, stim, probe, metaDataTags);

% call PlotProbe2 GUI
PlotProbe2(obj);
% global maingui

%%%% It will be in the next release
% procElem = maingui.dataTree.currElem;
% % Derived data that we want to save in a Snirf file.
% % To save in a snirf file we need to create a SnirfClass
% % object. A SnirfClass object is DataTree's implementation 
% % of the Snirf format.  
% data(1) = procElem.procStream.output.dcAvg; 
% data(2) = procElem.procStream.output.dod;
% 
% % To complete SnirfClass object arguments we need to supply these
% % which we get from acquired data of the first run associated with 
% % our procElem.
% probe = procElem.acquired.probe;
% stim = procElem.acquired.stim;
% metaDataTags = procElem.acquired.metaDataTags;
% 
% obj = SnirfClass(data, stim, probe, metaDataTags);
% 
% % call PlotProbe2 GUI
% PlotProbe2(obj);