Changeset 4548 for anuga_core/source/anuga/shallow_water/data_manager.py
- Timestamp:
- Jun 20, 2007, 11:26:42 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/shallow_water/data_manager.py
r4545 r4548 1654 1654 dir = "." # Unix compatibility 1655 1655 dir_ls = os.listdir(dir) 1656 i nterate_over = [x[:-4] for x in dir_ls if base in x and x[-4:] == '.sww']1657 1658 if len(i nterate_over) == 0:1656 iterate_over = [x[:-4] for x in dir_ls if base in x and x[-4:] == '.sww'] 1657 1658 if len(iterate_over) == 0: 1659 1659 msg = 'No files of the base name %s.'\ 1660 1660 %(basename_in) … … 1663 1663 files_out = [] 1664 1664 # print 'sww_file',sww_file 1665 for sww_file in i nterate_over:1665 for sww_file in iterate_over: 1666 1666 for quantity in quantities: 1667 1667 if extra_name_out is None: … … 1856 1856 # deal with either option 1857 1857 1858 #if verbose: bye= nsuadsfd[0] # uncomment to check catching verbose errors1858 #if verbose: bye= nsuadsfd[0] # uncomment to check catching verbose errors 1859 1859 1860 1860 #Read sww file … … 1897 1897 1898 1898 1899 #FIXME: Refactor using code from file_function.statistics1899 #FIXME: Refactor using code from Interpolation_function.statistics (in interpolate.py) 1900 1900 #Something like print swwstats(swwname) 1901 1901 if verbose:
Note: See TracChangeset
for help on using the changeset viewer.