Changeset 6031


Ignore:
Timestamp:
03/16/10 16:01:17 (10 years ago)
Author:
melissa
Message:
  • Fixed well labeling bug, courtesy of Bram Gerritsen.
  • Fixed NPE when passing a relative path name to setId.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/bio-formats/src/loci/formats/in/BDReader.java

    r6026 r6031  
    180180    plateName = plate.getTable("PlateType").get("Brand"); 
    181181 
    182     Location dir = new Location(id).getParentFile(); 
    183     for (String filename :  dir.list()) { 
     182    Location dir = new Location(id).getAbsoluteFile().getParentFile(); 
     183    for (String filename : dir.list()) { 
    184184      if (filename.startsWith("Well ")) { 
    185         wellLabels.add(filename.substring(5,8)); 
     185        wellLabels.add(filename.split("\\s|\\.")[1]); 
    186186      } 
    187187    } 
Note: See TracChangeset for help on using the changeset viewer.