Ignore:
Timestamp:
Dec 20, 2011, 5:14:43 PM (12 years ago)
Author:
sommeria
Message:

various bugs corrected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/find_file_series.m

    r339 r342  
    143143                break
    144144            end
    145         else
    146             ref_j=j1;
    147             if isempty(j2_input)
    148                 if  ~isempty(j2)% invalid file name if j2 does not exist in the input file
    149                     break
     145        else %j1_input is not empty
     146            if isempty(j1)% the detected name does not fit with the input
     147                break
     148            else
     149                ref_j=j1;
     150                if isempty(j2_input)
     151                    if  ~isempty(j2)% invalid file name if j2 does not exist in the input file
     152                        break
     153                    end
     154                else
     155                    ref_j=floor((j1+j2)/2);
    150156                end
    151             else
    152                 ref_j=floor((j1+j2)/2);
    153157            end
    154158        end
Note: See TracChangeset for help on using the changeset viewer.