Changeset 2711


Ignore:
Timestamp:
Apr 12, 2006, 3:11:01 PM (18 years ago)
Author:
sexton
Message:

modifications for testing input

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/geospatial_data/geospatial_data.py

    r2698 r2711  
    8787         
    8888        '''
    89        
     89
     90        if isinstance(data_points, basestring):
     91            # assume data point is really a file name
     92            file_name = data_points
    9093
    9194        if file_name is None:
     
    130133        else:
    131134            self.data_points = ensure_numeric(data_points)
     135            assert len(self.data_points.shape) == 2
     136            assert self.data_points.shape[1] == 2
    132137
    133138    def set_attributes(self, attributes):
Note: See TracChangeset for help on using the changeset viewer.