• Views
  • Iteration Report
  • My Iteration Report
  •  
OMERO.server
  • Login
  • Help/Guide
  • About Trac
  • Preferences
  • Wiki
  • Timeline
  • Roadmap
  • Browse Source
  • View Tickets
  • Search

Context Navigation

  • ← Previous Change
  • Next Change →

Changeset 2307 for branches/3.0-Beta2.3/components/bioformats-omero/src/ome/formats/OMEROMetadataStore.java

Show
Ignore:
Timestamp:
03/21/08 13:53:11 (8 months ago)
Author:
brain
Message:

closing out old tickets. Fixing a few bugs

Files:
1 modified

  • branches/3.0-Beta2.3/components/bioformats-omero/src/ome/formats/OMEROMetadataStore.java (modified) (4 diffs)

Legend:

Unmodified
Added
Removed
  • branches/3.0-Beta2.3/components/bioformats-omero/src/ome/formats/OMEROMetadataStore.java

    r2294 r2307  
    150150            // Instantiate our service factory 
    151151            sf = new ServiceFactory(server, login); 
    152  
    153             // Now initialize all our services 
    154             iQuery = sf.getQueryService(); 
    155             iUpdate = sf.getUpdateService(); 
    156             pservice = sf.createRawPixelsStore(); 
    157             rawFileStore = sf.createRawFileStore(); 
    158             iInfo = sf.getRepositoryInfoService(); 
     152             
     153            InitializeServices(sf); 
    159154             
    160155            exp = iQuery.findByString(Experimenter.class, "omeName", username); 
    … …  
    184179        { 
    185180            // Now initialize all our services 
    186             iQuery = sf.getQueryService(); 
    187             iUpdate = sf.getUpdateService(); 
    188             pservice = sf.createRawPixelsStore(); 
     181            InitializeServices(sf); 
     182             
    189183        } catch (Throwable t) 
    190184        { 
    191185            throw new Exception(t); 
    192186        } 
     187    } 
     188     
     189     
     190    /** 
     191     * Private class used by constructor to initialze the services of the service factory. 
     192     *  
     193     * @param factory a non-null, active {@link ServiceFactory} 
     194     */ 
     195    private void InitializeServices(ServiceFactory sf) 
     196    { 
     197        // Now initialize all our services 
     198        iQuery = sf.getQueryService(); 
     199        iUpdate = sf.getUpdateService(); 
     200        pservice = sf.createRawPixelsStore(); 
     201        rawFileStore = sf.createRawFileStore(); 
     202        iInfo = sf.getRepositoryInfoService(); 
    193203    } 
    194204 
    … …  
    12561266                channels.get(logicalChannelIndex).getLogicalChannel(); 
    12571267            lc.setExcitationWave(exWave); 
     1268            if (lc.getPhotometricInterpretation() == null) 
     1269            { 
     1270                log.debug("Setting Photometric iterpretation to monochrome"); 
     1271                PhotometricInterpretation pi = (PhotometricInterpretation)  
     1272                    getEnumeration(PhotometricInterpretation.class, "Monochrome"); 
     1273                lc.setPhotometricInterpretation(pi); 
     1274            } 
    12581275        } 
    12591276        } 
    … …  
    12791296                channels.get(logicalChannelIndex).getLogicalChannel(); 
    12801297            lc.setEmissionWave(emWave); 
     1298            if (lc.getPhotometricInterpretation() == null) 
     1299            { 
     1300                log.debug("Setting Photometric iterpretation to monochrome"); 
     1301                PhotometricInterpretation pi = (PhotometricInterpretation)  
     1302                    getEnumeration(PhotometricInterpretation.class, "Monochrome"); 
     1303                lc.setPhotometricInterpretation(pi); 
     1304            } 
    12811305        } 
    12821306        } 

Download in other formats:

  • Unified Diff
  • Zip Archive

Trac Powered

Powered by Trac 0.11
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/