Changeset 1749


Ignore:
Timestamp:
Aug 24, 2005, 10:20:32 AM (19 years ago)
Author:
ole
Message:

Comments

Location:
inundation
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • inundation/pyvolution/quantity.py

    r1748 r1749  
    8888                     points = None, values = None, #Input for least squares
    8989                     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
    9293                     verbose = None):
    9394       
     
    9697        numeric:
    9798       
    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
    99102
    100103        quantity:
     
    102105          Another quantity (compatible quantity, e.g. obtained as a
    103106          linear combination of quantities)
    104 
    105107
    106108        function:
     
    125127               
    126128         
    127          
    128129        location: Where values are to be stored.
    129130                  Permissible options are: vertices, edges, centroids
    130                   Default is "vertices"
     131                  Default is 'vertices'
    131132
    132133        In case of location == 'centroids' the dimension values must
     
    140141        specified points
    141142
    142         If indexex is not 'unique vertices' Indexes is the set of element ids
     143        If location is not 'unique vertices' Indices is the set of element ids
    143144        that the operation applies to.
    144         If indexex is 'unique vertices' Indexes is the set of vertex ids
     145        If location is 'unique vertices' Indices is the set of vertex ids
    145146        that the operation applies to.
    146 
    147147
    148148        If selected location is vertices, values for centroid and edges
     
    185185        that the operation applies to.
    186186
    187 
    188         If selected location is vertices, values for centroid and edges
     187        If selected location is 'vertices', values for centroid and edges
    189188        will be assigned interpolated values.
    190189        In any other case, only values for the specified locations
     
    193192        """
    194193
    195         if location not in ['vertices', 'centroids', 'edges', 'unique vertices']:
     194        if location not in ['vertices', 'centroids', 'edges',
     195                            'unique vertices']:
    196196            msg = 'Invalid location: %s' %location
    197197            raise msg
    198198
    199         #FIXME Do we really need 'location'?
    200199
    201200        if X is None:
  • inundation/pyvolution/test_quantity.py

    r1657 r1749  
    907907        indexes = [1,5]
    908908        quantity.set_values(value,
    909                                   location = 'unique vertices',
    910                                   indexes = indexes)
     909                            location = 'unique vertices',
     910                            indexes = indexes)
    911911        #print "quantity.centroid_values",quantity.centroid_values
    912912        assert allclose(quantity.vertex_values[0], [0,7,0])
  • inundation/wiki/future_directions.txt

    r1744 r1749  
    5050  Could code be cast in terms of lat/lons?
    5151  make sure that georeferencing is used consistently (domain, pmesh, sww files, ...) (Duncan) 
     52  Test that least_squares correctly reconciles different georefs. (See Karratha)
    5253
    5354Least_squares, (Duncan)
Note: See TracChangeset for help on using the changeset viewer.