Changeset 6917


Ignore:
Timestamp:
09/13/10 07:53:29 (9 years ago)
Author:
callan
Message:

Solution for underscores in wavelength names. (Fixes #558)

File:
1 edited

Legend:

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

    r6881 r6917  
    417417              stks[seriesNdx][pt[seriesNdx]] += "_w" + (j + 1); 
    418418              if (useWaveNames) { 
    419                 stks[seriesNdx][pt[seriesNdx]] += waveNames.get(j); 
     419                String waveName = waveNames.get(j); 
     420                // If there are underscores in the wavelength name, translate 
     421                // them to hyphens. (See #558) 
     422                waveName = waveName.replace('_', '-'); 
     423                stks[seriesNdx][pt[seriesNdx]] += waveName; 
    420424              } 
    421425            } 
Note: See TracChangeset for help on using the changeset viewer.