Ignore:
Timestamp:
20/12/06 10:17:35 (14 years ago)
Author:
domlowe
Message:

parameter, and AggregatedArray? implemented in scanner. Also changes to AssociationAttributeGroup in parser

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI02-CSML/branches/CSML2/csmllibs/csmlextra.py

    r1580 r1899  
    3333# a couple of string cleaning functions: 
    3434#   don't think these are used now 
    35 # def cleanString1(messystring): 
    36 #       #removes outer brackets and changes commas to spaces 
    37 #       cleanstring = messystring[1:-1] 
    38 #       cleanstring = cleanstring.replace(',',' ') 
    39 #       #strip off first (time) dimension. 
    40 #       #note, this might need rethinking for other datasets 
    41 #       cleanstring = cleanstring[3:] 
    42 #       return cleanstring 
     35def cleanString1(messystring): 
     36        #removes outer brackets and changes commas to spaces 
     37        cleanstring = messystring[1:-1] 
     38        cleanstring = cleanstring.replace(',',' ') 
     39        #strip off first (time) dimension. 
     40        #note, this might need rethinking for other datasets 
     41        cleanstring = cleanstring[3:] 
     42        return cleanstring 
    4343#        
    4444def cleanString(messystring): 
Note: See TracChangeset for help on using the changeset viewer.