Ignore:
Timestamp:
28/04/06 11:22:03 (14 years ago)
Author:
domlowe
Message:

fixed problem with arraySize list/tuple/string confusion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI02-CSML/trunk/Scanner/csmllibs/csmlextra.py

    r45 r855  
    3232         
    3333# a couple of string cleaning functions: 
    34 def cleanString1(messystring): 
    35         #removes outer brackets and changes commas to spaces 
    36         cleanstring = messystring[1:-1] 
    37         cleanstring = cleanstring.replace(',',' ') 
    38         #strip off first (time) dimension. 
    39         #note, this might need rethinking for other datasets 
    40         cleanstring = cleanstring[3:] 
    41         return cleanstring 
     34#   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 
     43#        
     44# def cleanString2(messystring): 
     45#       #removes outer brackets and 's, but leaves commas. 
     46#       cleanstring = messystring[1:-1] 
     47#       cleanstring = cleanstring.replace("'",'') 
     48#       return cleanstring 
    4249         
    43 def cleanString2(messystring): 
    44         #removes outer brackets and 's, but leaves commas. 
    45         cleanstring = messystring[1:-1] 
    46         cleanstring = cleanstring.replace("'",'') 
    47         return cleanstring 
    48          
Note: See TracChangeset for help on using the changeset viewer.