Ignore:
Timestamp:
08/09/12 16:13:42 (13 years ago)
Author:
jschierm
Message:

CHG: Change variable name list in matlab scripts to keep consistent with python, where it is very bad.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/test/NightlyRun/runme.m

    r12631 r12959  
    7272% }}}
    7373%GET ids  {{{1
    74 list=dir;%use dir, as it seems to act OS independent
     74flist=dir;%use dir, as it seems to act OS independent
    7575list_ids=[];
    76 for i=1:numel(list),
    77         if ( strncmp(list(i).name,'test',4) &...                         %File name must start with 'test'
    78                         strncmp(fliplr(list(i).name),fliplr('.m'),2)&...           %File name must end by '.m'
    79                         ~strcmp(list(i).name,'test.m'))                            %File name must be different than 'test.m'
    80                 list_ids(end+1)=eval(list(i).name(5:end-2));                  %Keep test id only (skip 'test' and '.m')
     76for i=1:numel(flist),
     77        if ( strncmp(flist(i).name,'test',4) &...                         %File name must start with 'test'
     78                        strncmp(fliplr(flist(i).name),fliplr('.m'),2)&...           %File name must end by '.m'
     79                        ~strcmp(flist(i).name,'test.m'))                            %File name must be different than 'test.m'
     80                list_ids(end+1)=eval(flist(i).name(5:end-2));                  %Keep test id only (skip 'test' and '.m')
    8181        end
    8282end
Note: See TracChangeset for help on using the changeset viewer.