Changeset 6465


Ignore:
Timestamp:
06/03/10 15:46:09 (10 years ago)
Author:
melissa
Message:

Added some debugging statements so that missing TIFF files are reported. See  omero:2471.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.2/components/bio-formats/src/loci/formats/in/LeicaReader.java

    r6457 r6465  
    763763      f.add(dirPrefix + prefix); 
    764764      // test to make sure the path is valid 
    765       Location test = new Location(f.get(f.size() - 1)); 
     765      Location test = new Location(f.get(f.size() - 1)).getAbsoluteFile(); 
     766      LOGGER.debug("Expected to find TIFF file {}", test.getAbsolutePath()); 
     767      if (!test.exists()) { 
     768        LOGGER.debug("  file does not exist"); 
     769      } 
    766770      if (test.exists()) list.remove(prefix); 
    767771      if (!tiffsExist) tiffsExist = test.exists(); 
     
    783787        Location l = new Location(dirPrefix, q).getAbsoluteFile(); 
    784788        FilePattern pattern = new FilePattern(l); 
     789        if (!pattern.isValid()) continue; 
    785790 
    786791        AxisGuesser guess = new AxisGuesser(pattern, "XYZCT", 1, 1, 1, false); 
  • trunk/components/bio-formats/src/loci/formats/in/LeicaReader.java

    r6458 r6465  
    763763      f.add(dirPrefix + prefix); 
    764764      // test to make sure the path is valid 
    765       Location test = new Location(f.get(f.size() - 1)); 
     765      Location test = new Location(f.get(f.size() - 1)).getAbsoluteFile(); 
     766      LOGGER.debug("Expected to find TIFF file {}", test.getAbsolutePath()); 
     767      if (!test.exists()) { 
     768        LOGGER.debug("  file does not exist"); 
     769      } 
    766770      if (test.exists()) list.remove(prefix); 
    767771      if (!tiffsExist) tiffsExist = test.exists(); 
     
    783787        Location l = new Location(dirPrefix, q).getAbsoluteFile(); 
    784788        FilePattern pattern = new FilePattern(l); 
     789        if (!pattern.isValid()) continue; 
    785790 
    786791        AxisGuesser guess = new AxisGuesser(pattern, "XYZCT", 1, 1, 1, false); 
Note: See TracChangeset for help on using the changeset viewer.