src/nupic/engine/__init__.py
def getRegionsByType(self, regionClass):
    """
    Gets all region instances of a given class
    (for example, nupic.regions.sp_region.SPRegion).
    """
    regions = []

    for region in self.regions.values():
      if type(region.getSelf()) is regionClass:
        regions.append(region)

    return regions
def getRegionsByType(self, regionClass):
    """
    Gets all region instances of a given class
    (for example, nupic.regions.sp_region.SPRegion).
    """
    regions = []

    for region in self.regions.values():
      if type(region.getSelf()) is regionClass:
        regions.append(region)

    return regions
def getRegionsByType ( self , regionClass ) : regions = [ ] for region in self . regions . values ( ) : if type ( region . getSelf ( ) ) is regionClass : regions . append ( region ) return regions
Gets all region instances of a given class
    (for example, nupic.regions.sp_region.SPRegion).
Gets all region instances of a given class ( for example nupic . regions . sp_region . SPRegion ) .