Changeset 3525 for nappy/trunk


Ignore:
Timestamp:
26/02/08 19:39:18 (12 years ago)
Author:
astephen
Message:

Fixed imports in test.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nappy/trunk/nappy/unit_tests/test_1010_to_1020.py

    r3524 r3525  
     1import os 
     2 
    13import nappy.nc_interface.na_to_nc 
     4import nappy.nc_interface.nc_to_na 
    25import cdms 
     6 
     7 
     8 
    39 
    410print "Converting NAFile to NC file 1010.na" 
     
    2026print "Outfile written:", ncfile 
    2127 
    22 import na_to_nc 
    23 import nc_to_na 
    24 import os 
    25  
    26 in_dir = "../../data_files" 
    2728out_dir = "../../test_outputs" 
    28 in_dir = out_dir 
    29  
    3029 
    3130ffi_in, ffi_out = (1010, 1020) 
    3231 
    33 infile = os.path.join(in_dir, "%s_edited_for_%s.nc" % (ffi_in, ffi_out)) 
     32infile = os.path.join(out_dir, "%s_edited_for_%s.nc" % (ffi_in, ffi_out)) 
    3433outfile = os.path.join(out_dir, "%s_from_nc_%s.na" % (ffi_out, ffi_in)) 
    3534 
    3635print "Reading:", infile 
    37 x = nc_to_na.NCToNA(infile, requested_ffi=ffi_out) 
     36x = nappy.nc_interface.nc_to_na.NCToNA(infile, requested_ffi=ffi_out) 
    3837 
    3938print "Writing:", outfile 
Note: See TracChangeset for help on using the changeset viewer.