Changeset 4909 for trunk/utils


Ignore:
Timestamp:
03/12/09 14:28:26 (11 years ago)
Author:
curtis
Message:

Use LogTools to print exceptions in MDB parser, and only when debug is set.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/utils/mipav/PlugInBioFormatsImporter.java

    r4848 r4909  
    120120          reader.setMetadataStore(store); 
    121121          reader.setId(id); 
    122           reader.setOutputOrder("XYZTC"); // MIPAV assumes 4-D data in XYZT order 
     122 
     123          // MIPAV assumes 4-D data in XYZT order 
     124          reader.setOutputOrder("XYZTC"); 
    123125 
    124126          // harvest some core metadata 
     
    176178          Float dimPhysSizeZ = store.getDimensionsPhysicalSizeZ(0, 0); 
    177179          Float dimTimeInc = store.getDimensionsTimeIncrement(0, 0); 
    178           float physSizeX = dimPhysSizeX == null ? 1.0f : dimPhysSizeX.floatValue(); 
    179           float physSizeY = dimPhysSizeY == null ? 1.0f : dimPhysSizeY.floatValue(); 
    180           float physSizeZ = dimPhysSizeZ == null ? 1.0f : dimPhysSizeZ.floatValue(); 
     180          float physSizeX = dimPhysSizeX == null ? 
     181            1.0f : dimPhysSizeX.floatValue(); 
     182          float physSizeY = dimPhysSizeY == null ? 
     183            1.0f : dimPhysSizeY.floatValue(); 
     184          float physSizeZ = dimPhysSizeZ == null ? 
     185            1.0f : dimPhysSizeZ.floatValue(); 
    181186          float timeInc = dimTimeInc == null ? 1.0f : dimTimeInc.floatValue(); 
    182187 
     
    190195 
    191196          // create MIPAV image object 
    192           ModelImage modelImage = new ModelImage(mipavType, dimExtents, imageName); 
     197          ModelImage modelImage = 
     198            new ModelImage(mipavType, dimExtents, imageName); 
    193199 
    194200          // import planes into MIPAV image 
     
    232238          FileInfoBase[] fileInfo = new FileInfoBase[imageCount]; 
    233239          for (int i=0; i<imageCount; i++) { 
    234             // HACK: Use FileInfoImageXML subclass since FileInfoBase is abstract. 
     240            // HACK: Use FileInfoImageXML since FileInfoBase is abstract. 
    235241            fileInfo[i] = new FileInfoImageXML(name, dir, FileUtility.XML); 
    236242            fileInfo[i].setExtents(dimExtents); 
Note: See TracChangeset for help on using the changeset viewer.