Changeset 3494


Ignore:
Timestamp:
12/20/07 13:49:41 (12 years ago)
Author:
melissa
Message:

Populate MetadataStore fields for all series; fixed bug with datasets that have a space in the base name (e.g. "2 channel Report.html").

File:
1 edited

Legend:

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

    r3462 r3494  
    112112      String path = file.exists() ? file.getPath() : id; 
    113113      int ndx = path.lastIndexOf(File.separator); 
    114       String base = path.substring(ndx + 1, path.indexOf(" ", ndx)); 
     114      String base = path.substring(ndx + 1, path.lastIndexOf(" ")); 
    115115 
    116116      String suffix = " Report.html"; 
     
    245245 
    246246    MetadataStore store = getMetadataStore(); 
    247     store.setImage(null, null, null, null); 
     247    for (int i=0; i<numSeries; i++) { 
     248      store.setImage("Position " + i, null, null, new Integer(i)); 
     249    } 
    248250    FormatTools.populatePixels(store, this); 
    249251 
    250     for (int i=0; i<core.sizeC[0]; i++) { 
    251       store.setLogicalChannel(i, null, null, null, null, null, null, null, 
    252         null, null, null, null, null, null, null, null, null, null, null, null, 
    253         null, null, null, null, null); 
    254     } 
    255  
     252    for (int i=0; i<numSeries; i++) { 
     253      for (int j=0; j<core.sizeC[i]; j++) { 
     254        store.setLogicalChannel(j, null, null, null, null, null, null, null, 
     255          null, null, null, null, null, null, null, null, null, null, null, 
     256          null, null, null, null, null, new Integer(i)); 
     257      } 
     258    } 
    256259  } 
    257260 
Note: See TracChangeset for help on using the changeset viewer.