Ignore:
Timestamp:
Mar 8, 2006, 1:39:11 PM (19 years ago)
Author:
ole
Message:

Changed domain.get_quantity() to return a quantity object rather than the values.
Updated tests accordingly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/pyvolution/domain.py

    r2380 r2491  
    196196
    197197    def get_quantity(self, name, location='vertices', indices = None):
    198         """Get values for named quantity
     198        """Get quantity object.
    199199
    200200        name: Name of quantity
    201201
    202         In case of location == 'centroids' the dimension values must
    203         be a list of a Numerical array of length N, N being the number
    204         of elements. Otherwise it must be of dimension Nx3.
    205 
    206         Indices is the set of element ids that the operation applies to.
    207 
    208         The values will be stored in elements following their
    209         internal ordering.
    210         """
    211 
    212         return self.quantities[name].get_values( location, indices = indices)
     202        See methods inside the quantity object for more options
     203        """
     204
     205        return self.quantities[name] #.get_values( location, indices = indices)
     206
    213207
    214208    def get_quantity_object(self, name):
     
    216210
    217211        name: Name of quantity
    218         """
    219 
     212
     213        FIXME: Obsolete
     214        """
     215
     216        print 'get_quantity_object has been deprecated. Please use get_quantity'
    220217        return self.quantities[name]
    221218
Note: See TracChangeset for help on using the changeset viewer.