Changeset 4774


Ignore:
Timestamp:
02/03/09 17:40:49 (11 years ago)
Author:
melissa
Message:

Fixed InCellReader's timestamps and element references.

File:
1 edited

Legend:

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

    r4750 r4774  
    195195    // populate Image data 
    196196 
     197    store.setInstrumentID("Instrument:0", 0); 
     198    store.setImageInstrumentRef("Instrument:0", 0); 
     199 
    197200    for (int i=0; i<seriesCount; i++) { 
    198201      store.setImageName("", i); 
     
    205208      for (int q=0; q<core[i].imageCount; q++) { 
    206209        store.setPlaneTimingDeltaT((Float) timings.get(nextTiming++), i, 0, q); 
    207         store.setPlaneTimingExposureTime(new Float(0), i, 0, q); 
     210        //store.setPlaneTimingExposureTime(new Float(0), i, 0, q); 
    208211      } 
    209212    } 
     
    224227      int col = (int) ((Point) wellCoordinates.get(i)).y - startCol; 
    225228      store.setWellSampleIndex(new Integer(i), 0, row*wellCols + col, 0); 
     229      store.setWellSampleImageRef("Image:" + i, 0, row * wellCols + col, 0); 
    226230    } 
    227231  } 
     
    296300 
    297301      if (qName.equals("Image")) { 
    298         timings.add(new Float(attributes.getValue("acquisition_time_ms"))); 
     302        float timestamp = 
     303          Float.parseFloat(attributes.getValue("acquisition_time_ms")); 
     304        timings.add(new Float(timestamp / 1000)); 
    299305      } 
    300306      else if (qName.equals("Creation")) { 
Note: See TracChangeset for help on using the changeset viewer.