Changeset 8784


Ignore:
Timestamp:
Mar 28, 2013, 1:23:19 PM (12 years ago)
Author:
steve
Message:

Changing to netcdf.py to run scientific python netcdf in preference to netcdf4

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/file/netcdf.py

    r8781 r8784  
    4242    """
    4343
    44     from Scientific.IO.NetCDF import NetCDFFile
    45     return NetCDFFile(file_name, netcdf_mode)
    46 
    47     #from netCDF4 import Dataset
    48     #return Dataset(file_name, netcdf_mode, format='NETCDF3_64BIT')
     44    try:
     45        from Scientific.IO.NetCDF import NetCDFFile
     46        return NetCDFFile(file_name, netcdf_mode)
     47    except:
     48        from netCDF4 import Dataset
     49        return Dataset(file_name, netcdf_mode, format='NETCDF3_64BIT')
     50
    4951
    5052    #return Dataset(file_name, netcdf_mode, format='NETCDF3_CLASSIC')
  • trunk/anuga_core/source/anuga_parallel/pymetis/test_metis.py

    r8770 r8784  
    3636                                                    1,\
    3737                                                    3,)
    38         print edgecut
    39         print epart
    40         print npart
     38        #print edgecut
     39        #print epart
     40        #print npart
    4141        epart_expected = array([2, 2, 0, 0, 0, 0], 'i')
    4242        npart_expected = array([0, 2, 2, 2, 0, 0, 0], 'i')
     
    6767                                                    1,\
    6868                                                    2,)
    69         print edgecut
    70         print epart
    71         print npart
     69        #print edgecut
     70        #print epart
     71        #print npart
    7272        epart_expected = array([1, 0, 0, 0, 1, 1], 'i')
    7373        npart_expected = array([0, 1, 1, 0, 0, 0, 1], 'i')
     
    103103                                                    1,\
    104104                                                    3,)
    105         print edgecut
    106         print epart
    107         print npart
     105        #print edgecut
     106        #print epart
     107        #print npart
    108108        epart_expected = array([0, 0, 0, 1, 2, 2, 2, 2, 1, 1], 'i')
    109109        npart_expected = array([0, 2, 0, 2, 1, 1, 2, 2, 0, 1], 'i')
  • trunk/anuga_work/development/carrier_greenspan/produce_results.py

    r8594 r8784  
    22# import modules
    33#--------------------------------
    4 from fabricate import *
     4from anuga_validation_tests.fabricate import **
    55from validation_tests.utilities import run_validation_script
    66
Note: See TracChangeset for help on using the changeset viewer.