Changeset 4816


Ignore:
Timestamp:
02/18/09 09:52:57 (11 years ago)
Author:
melissa
Message:

Changed how axis notes are parsed - extraneous spaces and '=' characters are now ignored.

File:
1 edited

Legend:

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

    r4756 r4816  
    729729 
    730730      if (n.p.indexOf("AXIS") != -1) { 
    731         String[] values = n.p.split(" "); 
     731        n.p = n.p.replaceAll("=", ""); 
     732        Vector v = new Vector(); 
     733        StringTokenizer tokens = new StringTokenizer(n.p, " "); 
     734        while (tokens.hasMoreTokens()) { 
     735          String token = tokens.nextToken().trim(); 
     736          if (token.length() > 0) v.add(token); 
     737        } 
     738        String[] values = (String[]) v.toArray(new String[0]); 
    732739        String key = values[0]; 
    733740        String noteType = values[1]; 
Note: See TracChangeset for help on using the changeset viewer.