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/nc_interface/nc_to_na.py

    r3615 r3630  
    3535# Define global variables 
    3636DEBUG = nappy.utils.getDebug()  
     37default_delimiter = nappy.utils.getDefault("default_delimiter") 
     38default_float_format = nappy.utils.getDefault("default_float_format") 
     39 
    3740 
    3841class NCToNA(nappy.nc_interface.cdms_to_na.CDMSToNA): 
     
    118121        return file_names 
    119122 
    120     def writeNAFiles(self, na_file=None, delimiter="    ",  
    121                      float_format="%g", size_limit=None): 
     123    def writeNAFiles(self, na_file=None, delimiter=default_delimiter,  
     124                     float_format=default_float_format, size_limit=None): 
    122125        """ 
    123126        Writes the self.na_dict_list content to one or more NASA Ames files. 
Note: See TracChangeset for help on using the changeset viewer.