Changeset 4108


Ignore:
Timestamp:
06/09/08 14:08:38 (12 years ago)
Author:
curtis
Message:

Print an informative warning if file pattern could not be detected.

Location:
trunk/loci/plugins
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/plugins/Importer.java

    r4106 r4108  
    152152 
    153153      if (groupFiles) { 
    154         try { 
    155           status = options.promptFilePattern(); 
    156           if (!statusOk(status)) return; 
    157         } 
    158         catch (NullPointerException e) { } 
     154        status = options.promptFilePattern(); 
     155        if (!statusOk(status)) return; 
    159156        id = options.getId(); 
    160157        if (id == null) id = currentFile; 
  • trunk/loci/plugins/ImporterOptions.java

    r4107 r4108  
    636636 
    637637    id = FilePattern.findPattern(idLoc); 
     638    if (id == null) { 
     639      IJ.showMessage("Bio-Formats", 
     640        "Warning: Bio-Formats was unable to determine a grouping that\n" + 
     641        "includes the file you chose. The most common reason for this\n" + 
     642        "situation is that the folder contains extraneous files with " + 
     643        "similar\n" + 
     644        "names and numbers that confuse the detection algorithm.\n" + 
     645        " \n" + 
     646        "For example, if you have multiple datasets in the same folder\n" + 
     647        "named series1_z*_c*.tif, series2_z*_c*.tif, etc., Bio-Formats\n" + 
     648        "may try to group all such files into a single series.\n" + 
     649        " \n" + 
     650        "For best results, put each image series's files in their own " + 
     651        "folder,\n" + 
     652        "or type in a file pattern manually.\n"); 
     653      id = idLoc.getAbsolutePath(); 
     654    } 
    638655 
    639656    // prompt user to confirm file pattern (or grab from macro options) 
Note: See TracChangeset for help on using the changeset viewer.