Changeset 1882
- Timestamp:
- Oct 10, 2005, 10:29:19 AM (19 years ago)
- Location:
- inundation/pyvolution
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/pyvolution/least_squares.py
r1872 r1882 109 109 if display_errors: 110 110 print "Could not load bad file. ", e 111 raise IOError #Re-raise exception 111 raise IOError #Re-raise exception 112 112 113 113 point_coordinates = point_dict['pointlist'] … … 161 161 if display_errors: 162 162 print "Could not write file. ", e 163 #import sys; sys.exit()164 163 raise IOError 165 164 -
inundation/pyvolution/test_least_squares.py
r1873 r1882 1527 1527 fd.close() 1528 1528 1529 #FIXME (Ole): Is this a deliberately illegal filename to invoke the error? 1530 #There might be platform issus (Unix/Windows) 1531 #In any case, the call to itself does not raise an exception on cyclone - why? 1532 mesh_output_file = "e:\new_triangle.tsh" 1533 1534 #FIXME: This does not raise an IO error on Linux but it does on Windows 1535 #fit_to_mesh_file(mesh_file, point_file, 1536 # mesh_output_file, display_errors = False) 1537 1529 #This a deliberately illegal filename to invoke the error. 1530 mesh_output_file = ".../\z\z:ya.tsh" 1531 1538 1532 try: 1539 1533 fit_to_mesh_file(mesh_file, point_file,
Note: See TracChangeset
for help on using the changeset viewer.