def energy_capture(self, stachans='<STR_LIT:all>', size=(<NUM_LIT:10>, <NUM_LIT:7>), show=False):
if show:<EOL><INDENT>return subspace_fc_plot(detector=self, stachans=stachans,<EOL>size=size, show=show)<EOL><DEDENT>percent_capture = <NUM_LIT:0><EOL>if np.isinf(self.dimension):<EOL><INDENT>return <NUM_LIT:100><EOL><DEDENT>for channel in self.sigma:<EOL><INDENT>fc = np.sum(channel[<NUM_LIT:0>:self.dimension]) / np.sum(channel)<EOL>percent_capture += fc<EOL><DEDENT>else:<EOL><INDENT>return <NUM_LIT:100> * (percent_capture / len(self.sigma))<EOL><DEDENT>
Calculate the average percentage energy capture for this subspace.

:return: Percentage energy capture
:rtype: float