meeko/utils/obutils.py
def find_pattern_OB(self, pattern, unique=True):
        """ use OB to find SMARTS patterns  """
        self._finder.Init(pattern)
        found = self._finder.Match(self.mol)
        if not found:
            # print "WARNING: MODIFIED FROM NONE TO []"
            return []
        # TODO consider if non-unique pattern matching is what we want
        # NOTE IMPORTANT!
        if unique == True:
            return [list(x) for x in self._finder.GetUMapList()]
        else:
            return [list(x) for x in self._finder.GetMapList()]
 use OB to find SMARTS patterns  
use OB to find SMARTS patterns
use OB to find SMARTS patterns
def find_pattern_OB(self, pattern, unique=True):
        self._finder.Init(pattern)
        found = self._finder.Match(self.mol)
        if not found:
            return []
        if unique == True:
            return [list(x) for x in self._finder.GetUMapList()]
        else:
            return [list(x) for x in self._finder.GetMapList()]
def find_pattern_OB ( self , pattern , unique = True ) : self . _finder . Init ( pattern ) found = self . _finder . Match ( self . mol ) if not found : return [ ] if unique == True : return [ list ( x ) for x in self . _finder . GetUMapList ( ) ] else : return [ list ( x ) for x in self . _finder . GetMapList ( ) ]
use OB to find SMARTS patterns
use OB to find SMARTS patterns
""" use OB to find SMARTS patterns  """ # print "WARNING: MODIFIED FROM NONE TO []" # TODO consider if non-unique pattern matching is what we want # NOTE IMPORTANT!
self
pattern
unique