Changeset 4703


Ignore:
Timestamp:
12/23/08 10:52:34 (11 years ago)
Author:
melissa
Message:

Fixed minor metadata parsing bugs.

File:
1 edited

Legend:

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

    r4698 r4703  
    235235        if (endIndex == -1) endIndex = value.length(); 
    236236 
    237         value = value.substring(startIndex + 1, endIndex); 
    238         value = value.trim(); 
     237        value = value.substring(startIndex + 1, endIndex).trim(); 
    239238        value = value.substring(0, value.length() - 1); 
     239        value = value.replaceAll("\"", ""); 
     240        if (value.endsWith(",")) value = value.substring(0, value.length() - 1); 
    240241        addMeta(key, value); 
    241242        if (key.equals("Channels")) core[0].sizeC = Integer.parseInt(value); 
     
    283284 
    284285          key = key.replaceAll("\"", ""); 
     286          value = value.replaceAll("\"", ""); 
    285287 
    286288          addMeta(key, value); 
Note: See TracChangeset for help on using the changeset viewer.