Changeset 1005


Ignore:
Timestamp:
Mar 4, 2005, 4:31:16 PM (20 years ago)
Author:
duncan
Message:

error comment change

File:
1 edited

Legend:

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

    r1002 r1005  
    2121    dic['pointlist'] = [[1.0,2.0],[3.0,5.0]]
    2222    dic['attributelist']['elevation'] = [[7.0,5.0]
    23 
    2423
    2524   
     
    5756from os.path import splitext
    5857
    59    
    6058
    6159import exceptions
     
    10021000    dic['attributelist']['elevation'] = [[7.0,5.0]
    10031001    """
     1002    #FIXME: This format has issues.  There can't be an attribute called points
     1003   
    10041004
    10051005    from Scientific.IO.NetCDF import NetCDFFile
     
    10171017    except IOError, e:       
    10181018        fid.close()   
    1019         msg = 'Could not open file %s ' %ofile
    1020         #FIXME (Ole): Why this error message. Shouldn't it be something like
    1021         #msg = 'Expected keyword "points" but couldn't fin it'
    1022         #?
    1023         #Also the original error e, could be added and raised again
     1019        msg = 'Expected keyword "points" but could not find it'
     1020        #FIXME (Ole): Also the original error e,
     1021        #could be added and raised again
     1022        # (DSG) The original error e is useful for fixing bugs
     1023        #  This is an issue with a file that has been caught,
     1024        # not a bug.
    10241025        raise IOError, msg   
    10251026    attributes = {}
     
    10291030    point_atts['attributelist'] = attributes
    10301031    fid.close()
     1032   
    10311033    #print "point_atts",point_atts
    10321034    return point_atts
     
    10371039    WARNING: This function mangles the point_atts data structure
    10381040    """
     1041    #FIXME: This format has issues.  There can't be an attribute called points
    10391042   
    10401043    from Scientific.IO.NetCDF import NetCDFFile
Note: See TracChangeset for help on using the changeset viewer.