Changeset 2995


Ignore:
Timestamp:
07/17/07 14:59:47 (13 years ago)
Author:
melissa
Message:

Don't assume dimension information is present.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/in/ImprovisionTiffReader.java

    r2976 r2995  
    9292    } 
    9393 
    94     core.sizeZ[0] = Integer.parseInt((String) getMeta("TotalZPlanes")); 
    95     core.sizeC[0] = Integer.parseInt((String) getMeta("TotalChannels")); 
    96     core.sizeT[0] = Integer.parseInt((String) getMeta("TotalTimepoints")); 
     94    String tz = (String) getMeta("TotalZPlanes"); 
     95    String tc = (String) getMeta("TotalChannels"); 
     96    String tt = (String) getMeta("TotalTimepoints"); 
     97     
     98    if (tz == null) tz = "1"; 
     99    if (tc == null) tc = "1"; 
     100    if (tt == null) tt = "1"; 
     101 
     102    core.sizeZ[0] = Integer.parseInt(tz); 
     103    core.sizeC[0] = Integer.parseInt(tc); 
     104    core.sizeT[0] = Integer.parseInt(tt); 
    97105 
    98106    // parse each of the comments to determine axis ordering 
Note: See TracChangeset for help on using the changeset viewer.