Ignore:
Timestamp:
17/03/08 15:14:19 (12 years ago)
Author:
astephen
Message:

Fixed defaults for delimiter and float format so read from nappy.ini config file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nappy/trunk/nappy/utils/common_utils.py

    r3628 r3630  
    152152    return d 
    153153 
    154 def getAnnotation(item, annotation, delimiter = ',   '): 
     154 
     155def getAnnotation(item, annotation, delimiter=None): 
    155156    """ 
    156157    Returns the annotation string for a given NASA Ames item. 
    157158    """ 
    158      
     159    if delimiter == None: 
     160        delimiter = getDefault("default_delimiter")  
    159161    dict = parse_config.getAnnotationsConfigDict() 
    160162    if annotation: return dict[item] + delimiter 
    161163    else: return '' 
     164 
    162165 
    163166def annotateLines(item_name, annotate, delimiter, lines): 
Note: See TracChangeset for help on using the changeset viewer.