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