Changeset 4573
- Timestamp:
- Jul 2, 2007, 11:15:16 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/geospatial_data/geospatial_data.py
r4569 r4573 147 147 msg = 'No file specified yet a delimiter is provided!' 148 148 raise ValueError, msg 149 file_name = None #FIXME (Ole): Isn't this line superfluous150 149 151 150 if latitudes is not None or longitudes is not None or \ … … 759 758 if self.file_name[-4:] == ".xya": 760 759 # FIXME (Ole): shouldn't the xya format be replaced by txt/csv? 761 760 # Currently both file formats are used. 761 762 762 #let's just read it all 763 763 pass … … 783 783 784 784 else: 785 # It looks like the file is assumed to bea csv file785 # assume the file is a csv file 786 786 file_pointer = open(self.file_name) 787 787 self.header, self.file_pointer = \ … … 798 798 if self.file_name[-4:]== ".xya" : 799 799 # FIXME (Ole): shouldn't the xya format be replaced by txt/csv? 800 # Currently both file formats are used. 800 801 801 802 if not hasattr(self,'finished_reading') or \ … … 843 844 844 845 else: 846 # assume the file is a csv file 845 847 try: 846 848 pointlist, att_dict, geo_ref, self.file_pointer = \
Note: See TracChangeset
for help on using the changeset viewer.