Changeset 1104


Ignore:
Timestamp:
Mar 17, 2005, 7:25:53 PM (20 years ago)
Author:
ole
Message:

Mainly comments

Location:
inundation/ga/storm_surge/pyvolution
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/pyvolution/least_squares.py

    r1097 r1104  
    8686                 concatinate_attributelist
    8787   
    88     # load in the .tsh file
    89     #FIXME (Ole): mesh_origin should be extracted here
    9088    mesh_dict = mesh_file_to_mesh_dictionary(mesh_file)
    9189    vertex_coordinates = mesh_dict['vertices']
     
    104102   
    105103    # load in the .pts file
    106     #FIXME (Ole): data_origin should be extracted here
    107104    try:
    108105        point_dict = load_points_file(point_file,
     
    117114    title_list,point_attributes = concatinate_attributelist(point_dict['attributelist'])
    118115   
    119     if point_dict.has_key('geo_reference')and not point_dict['geo_reference'] is None:
     116    if point_dict.has_key('geo_reference') and not point_dict['geo_reference'] is None:
    120117        data_origin = point_dict['geo_reference'].get_origin()
    121118    else:
    122119        data_origin = (56, 0, 0) #FIXME(DSG-DSG)
    123120       
    124     if mesh_dict.has_key('geo_reference')and not mesh_dict['geo_reference'] is None:
     121    if mesh_dict.has_key('geo_reference') and not mesh_dict['geo_reference'] is None:
    125122        mesh_origin = mesh_dict['geo_reference'].get_origin()
    126123    else:
  • inundation/ga/storm_surge/pyvolution/util.py

    r1102 r1104  
    11341134    #Input checks
    11351135    try:
    1136         points = array(points).astype(Float)       
     1136        #FIXME: This is where it can die due to lack of memeory
     1137        #Maybe comment out and test for Numeric type
     1138        points = array(points).astype(Float)
    11371139    except:
    11381140        msg = 'Points could not be converted to Numeric array'
    1139         raise msg       
    1140        
     1141        raise msg
     1142
     1143    #if verbose: print 'Checking input to separate_points_by_polygon 2'
    11411144    try:
    1142         polygon = array(polygon).astype(Float)             
     1145        #FIXME: SAme thing
     1146        polygon = array(polygon).astype(Float)
    11431147    except:
    11441148        msg = 'Polygon could not be converted to Numeric array'
    11451149        raise msg               
    11461150
     1151    if verbose: print 'check'
     1152   
    11471153    assert len(polygon.shape) == 2,\
    11481154       'Polygon array must be a 2d array of vertices'
  • inundation/ga/storm_surge/pyvolution/wiki/issues.txt

    r779 r1104  
    22OPEN ISSUES:
    33------------
     4Issue: finaltime should be renamed 'duration'
     5
     6
    47Issue (least_squares): The current is-a-point-in-a-triangle algorithm
    58is slow if a point is outside of the mesh.  It will check each
Note: See TracChangeset for help on using the changeset viewer.