Changeset 6313


Ignore:
Timestamp:
05/13/10 15:30:37 (10 years ago)
Author:
melissa
Message:

Fixed field count and image names, courtesy of Rubén Muñoz.

File:
1 edited

Legend:

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

    r6230 r6313  
    352352      nWells = wellRows * wellColumns; 
    353353    } 
    354     nPos = realPosCount; 
     354    if (realPosCount < nPos) { 
     355      nPos = realPosCount; 
     356    } 
    355357 
    356358    reader = new MinimalTiffReader(); 
     
    424426      store.setImageID(imageID, i); 
    425427 
    426       String row = 
    427         String.valueOf(wellRows > 26 ? wellRow + 1 : (char) ('A' + wellRow)); 
    428       String col = 
    429         String.valueOf(wellRows > 26 ? (char) ('A' + wellCol) : wellCol + 1); 
    430       String name = "Well " + row + col + ", Field " + (field + 1) + 
    431         " (Spot " + (i + 1) + ")"; 
     428      String name = "Well " + (well + 1) + ", Field " + (field +1) + " (Spot " + 
     429        (i + 1) + ")"; 
    432430      store.setImageName(name, i); 
    433431    } 
Note: See TracChangeset for help on using the changeset viewer.