Changeset 2797


Ignore:
Timestamp:
05/18/07 11:14:02 (13 years ago)
Author:
curtis
Message:

Only allow setIntensity when no id is set; fix bugs in getSizeC.

File:
1 edited

Legend:

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

    r2701 r2797  
    6565   * data only (the sum of each lifetime histogram). 
    6666   */ 
    67   public void setIntensity(boolean intensity) { this.intensity = intensity; } 
     67  public void setIntensity(boolean intensity) { 
     68    FormatTools.assertId(currentId, false, 1); 
     69    this.intensity = intensity; 
     70  } 
    6871 
    6972  /** 
     
    202205    core.sizeY[0] = info.height; 
    203206    core.sizeZ[0] = 1; 
    204     core.sizeC[0] = channels; 
     207    core.sizeC[0] = intensity ? channels : timeBins * channels; 
    205208    core.sizeT[0] = 1; 
    206209    core.currentOrder[0] = "XYZTC"; 
Note: See TracChangeset for help on using the changeset viewer.