- Timestamp:
- May 24, 2010, 1:24:33 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/abstract_2d_finite_volumes/util.py
r7735 r7737 15 15 16 16 from anuga.utilities.numerical_tools import ensure_numeric, angle, NAN 17 from anuga.utilities.file_utils import load_csv_as_dict 17 18 18 19 from math import sqrt, atan, degrees … … 731 732 732 733 dir_filename = join(directory,filename) 733 attribute_dic, title_index_dic = csv2dict(dir_filename + '.csv')734 attribute_dic, title_index_dic = load_csv_as_dict(dir_filename + '.csv') 734 735 directory_start_time = directories_dic[directory][1] 735 736 directory_add_tide = directories_dic[directory][2] … … 844 845 845 846 # create an if about the start time and tide height if don't exist 846 attribute_dic, title_index_dic = csv2dict(directory + sep847 attribute_dic, title_index_dic = load_csv_as_dict(directory + sep 847 848 + filename + '.csv') 848 849 #get data from dict in to list … … 956 957 957 958 from anuga.shallow_water.data_manager import \ 958 get_maximum_inundation_data , csv2dict959 get_maximum_inundation_data 959 960 960 961 file = open(runup_filename, "w") … … 963 964 964 965 #read gauge csv file to dictionary 965 attribute_dic, title_index_dic = csv2dict(gauge_filename)966 attribute_dic, title_index_dic = load_csv_as_dict(gauge_filename) 966 967 northing = [float(x) for x in attribute_dic["y"]] 967 968 easting = [float(x) for x in attribute_dic["x"]]
Note: See TracChangeset
for help on using the changeset viewer.