Changeset 3382 for nappy


Ignore:
Timestamp:
11/02/08 20:11:51 (12 years ago)
Author:
astephen
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • nappy/trunk/nappy/nc_interface/na_to_nc.py

    r3351 r3382  
    3636        """ 
    3737        # First open na_file if it is a file rather than an na_file object 
    38         if type(na_file) == type("string"): 
    39             na_file_obj = nappy.openNAFile(na_file) 
     38        na_file_obj = na_file 
     39        if type(na_file_obj) == type("string"): 
     40            na_file_obj = nappy.openNAFile(na_file_obj) 
    4041 
    4142        nappy.nc_interface.na_to_cdms.NAToCdms(self, na_file_obj, variables=variables,  
Note: See TracChangeset for help on using the changeset viewer.