Commit f162f70a authored by jayd1860's avatar jayd1860
Browse files

v1.79.2

-- Add more standalone startup function to setpaths.m to be able to independent of any startup code search paths except current folder
-- Chnage default value of config param Load Stim From TSV File from no to yes.

* DataTree, v1.14.2
-- Fix events TSV file naming bug. Add TSV file name method TreeNode.GetStimTsvFilename() to use for all events TSV file naming.
-- Fixes to setpaths for running DataTree standalone

* Utils, v1.6.0
-- Fix some bugs in events TSV stim loading error handling. Add config param "Replace TSV File Tabs with Spaces" to handle events TSV errors when file  is a mix of spaces and tabs.
-- Add method ConfigFileClass.GetValueOptions for getting all available value options for a param.
parent de02dd76
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -11,9 +11,6 @@ don't ask again
one processing element per file

% Load Stim From TSV File # Yes, No
No

% Replace TSV File Tabs with Spaces # Yes, No
No
Yes

% END
+0 −7
Original line number Diff line number Diff line
@@ -48,11 +48,4 @@ else
    writeTsv(dst, tsv);
end

% Remove stim from
% if optionExists(options, 'removeStim')
%     s.Load();
%     s.stim = StimClass().empty();
%     s.Save();
% end

+3 −0
Original line number Diff line number Diff line
@@ -40,4 +40,7 @@ No
% Quiet Mode # On, Off
Off

% Replace TSV File Tabs with Spaces # auto-replace, ask me, don't replace and don't ask me
ask me

% END
+12 −2
Original line number Diff line number Diff line
@@ -548,6 +548,17 @@ classdef TreeNodeClass < handle
        
        
        
        % ----------------------------------------------------------------------------------
        function fnameTsv = GetStimTsvFilename(obj)
            fnameTsv = [];
            if isempty(obj.acquired)
                return;
            end
            fnameTsv = obj.acquired.GetStimTsvFilename();
        end
        
        
        
        % ----------------------------------------------------------------------------------
        function EditStim(obj, waitForInput)
            if ~exist('waitForInput','var')
@@ -558,10 +569,9 @@ classdef TreeNodeClass < handle
                return;
            end
            filenameData = [obj.path, obj.GetFilename()];
            [p1,f1] = fileparts(filenameData);
            
            % From data file name get events TSV file and load in matlab editor
            filenameEvents = [p1, '/', f1, '_events.tsv'];
            filenameEvents = obj.GetStimTsvFilename();
            if ~ispathvalid(filenameEvents)
                obj.logger.Write('Events TSV file for %s doesn''t exist.\n', filenameData);
                obj.ExportStim();
+1 −2
Original line number Diff line number Diff line
1.14.1
1.14.2
 No newline at end of file
Loading