Changeset 1749
- Timestamp:
- Aug 24, 2005, 10:20:32 AM (18 years ago)
- Location:
- inundation
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/pyvolution/quantity.py
r1748 r1749 88 88 points = None, values = None, #Input for least squares 89 89 filename = None, attribute_name = None, #Input from file 90 alpha = None, 91 location = None, 90 alpha = None, 91 indices = None, 92 location = None, #Really needed 92 93 verbose = None): 93 94 … … 96 97 numeric: 97 98 98 Compatible list, Numeric array (see below) or constant 99 Compatible list, Numeric array (see below) or constant. 100 If callable it will treated as a function for convenience and 101 backwards compatibility 99 102 100 103 quantity: … … 102 105 Another quantity (compatible quantity, e.g. obtained as a 103 106 linear combination of quantities) 104 105 107 106 108 function: … … 125 127 126 128 127 128 129 location: Where values are to be stored. 129 130 Permissible options are: vertices, edges, centroids 130 Default is "vertices"131 Default is 'vertices' 131 132 132 133 In case of location == 'centroids' the dimension values must … … 140 141 specified points 141 142 142 If indexex is not 'unique vertices' Indexes is the set of element ids143 If location is not 'unique vertices' Indices is the set of element ids 143 144 that the operation applies to. 144 If indexex is 'unique vertices' Indexes is the set of vertex ids145 If location is 'unique vertices' Indices is the set of vertex ids 145 146 that the operation applies to. 146 147 147 148 148 If selected location is vertices, values for centroid and edges … … 185 185 that the operation applies to. 186 186 187 188 If selected location is vertices, values for centroid and edges 187 If selected location is 'vertices', values for centroid and edges 189 188 will be assigned interpolated values. 190 189 In any other case, only values for the specified locations … … 193 192 """ 194 193 195 if location not in ['vertices', 'centroids', 'edges', 'unique vertices']: 194 if location not in ['vertices', 'centroids', 'edges', 195 'unique vertices']: 196 196 msg = 'Invalid location: %s' %location 197 197 raise msg 198 198 199 #FIXME Do we really need 'location'?200 199 201 200 if X is None: -
inundation/pyvolution/test_quantity.py
r1657 r1749 907 907 indexes = [1,5] 908 908 quantity.set_values(value, 909 910 909 location = 'unique vertices', 910 indexes = indexes) 911 911 #print "quantity.centroid_values",quantity.centroid_values 912 912 assert allclose(quantity.vertex_values[0], [0,7,0]) -
inundation/wiki/future_directions.txt
r1744 r1749 50 50 Could code be cast in terms of lat/lons? 51 51 make sure that georeferencing is used consistently (domain, pmesh, sww files, ...) (Duncan) 52 Test that least_squares correctly reconciles different georefs. (See Karratha) 52 53 53 54 Least_squares, (Duncan)
Note: See TracChangeset
for help on using the changeset viewer.