Changeset 975


Ignore:
Timestamp:
Mar 1, 2005, 9:50:18 AM (20 years ago)
Author:
duncan
Message:

trying to make having scientificPython optional

Location:
inundation/ga/storm_surge/pmesh/load_mesh
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/pmesh/load_mesh/loadASCII.py

    r969 r975  
    5757from os.path import splitext
    5858
    59 from Scientific.IO.NetCDF import NetCDFFile
    60    
     59   
     60
    6161import exceptions
    6262class TitleAmountError(exceptions.Exception): pass
     
    576576    WARNING: This function mangles the mesh_dict data structure
    577577    """
    578    
     578 
     579    from Scientific.IO.NetCDF import NetCDFFile 
    579580   
    580581    point_atts2array(point_atts)
     
    717718    """
    718719
     720    from Scientific.IO.NetCDF import NetCDFFile
     721
    719722    fid = NetCDFFile(filename, 'r')
    720723
     
    745748    """
    746749   
     750    from Scientific.IO.NetCDF import NetCDFFile
     751
    747752    point_atts2array(point_atts)
    748753    # NetCDF file definition
  • inundation/ga/storm_surge/pmesh/load_mesh/test_loadASCII.py

    r969 r975  
    1919from os.path import splitext
    2020
    21 from Scientific.IO.NetCDF import NetCDFFile
    2221from Numeric import array #Float, arrayrange, concatenate
    2322   
     
    145144
    146145    def test_loadpts(self):
     146       
     147        from Scientific.IO.NetCDF import NetCDFFile
     148
    147149        fileName = tempfile.mktemp(".pts")
    148150        # NetCDF file definition
Note: See TracChangeset for help on using the changeset viewer.