def _calcDepths(self):
depths = self.layerBoundaries.mean(axis=<NUM_LIT:1>)[<NUM_LIT:1>:]<EOL>depth_y = []<EOL>for y in self.y:<EOL><INDENT>if y in ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>']:<EOL><INDENT>depth_y = np.r_[depth_y, depths[<NUM_LIT:0>]]<EOL><DEDENT>elif y in ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>']:<EOL><INDENT>depth_y = np.r_[depth_y, depths[<NUM_LIT:1>]]<EOL><DEDENT>elif y in ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>']:<EOL><INDENT>depth_y = np.r_[depth_y, depths[<NUM_LIT:2>]]<EOL><DEDENT>elif y in ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>']:<EOL><INDENT>depth_y = np.r_[depth_y, depths[<NUM_LIT:3>]]<EOL><DEDENT>else:<EOL><INDENT>raise Exception('<STR_LIT>')<EOL><DEDENT><DEDENT>return depth_y<EOL>
return the cortical depth of each subpopulation