/[escript]/trunk/downunder/py_src/datasources.py
ViewVC logotype

Diff of /trunk/downunder/py_src/datasources.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4021 by jfenwick, Mon Oct 15 02:31:00 2012 UTC revision 4032 by gross, Wed Oct 24 08:06:15 2012 UTC
# Line 150  class DataSource(object): Line 150  class DataSource(object):
150              self._domain=self._createDomain(self._pad_x, self._pad_y)              self._domain=self._createDomain(self._pad_x, self._pad_y)
151          return self._domain          return self._domain
152    
153      def getDensityMask(self):      def getSetDensityMask(self):
154          """          """
155          Returns the density mask data object, where mask has value 1 in the          Returns the density mask data object, where mask has value 1 in the
156          padding area, 0 elsewhere.          padding area, 0 elsewhere.
# Line 380  class UBCDataSource(DataSource): Line 380  class UBCDataSource(DataSource):
380          """          """
381          return self.__domainclass          return self.__domainclass
382    
383      #def getDensityMask(self):      #def getSetDensityMask(self):
384      #    topodata=self.__readTopography()      #    topodata=self.__readTopography()
385      #    mask=self._interpolateOnDomain(topodata)      #    mask=self._interpolateOnDomain(topodata)
386      #    mask=wherePositive(self.getDomain().getX()[2]-mask[0])      #    mask=wherePositive(self.getDomain().getX()[2]-mask[0])
# Line 826  class SyntheticDataSource(DataSource): Line 826  class SyntheticDataSource(DataSource):
826    
827          return dom          return dom
828    
829      def getDensityMask(self):      def getSetDensityMask(self):
830          return self._mask          return self._mask
831    
832      def getReferenceDensity(self):      def getReferenceDensity(self):

Legend:
Removed from v.4021  
changed lines
  Added in v.4032

  ViewVC Help
Powered by ViewVC 1.1.26