@cached<EOL><INDENT>def spacings(self):<DEDENT>
result_invsq = (self.reciprocal**<NUM_LIT:2>).sum(axis=<NUM_LIT:0>)<EOL>result = np.zeros(<NUM_LIT:3>, float)<EOL>for i in range(<NUM_LIT:3>):<EOL><INDENT>if result_invsq[i] > <NUM_LIT:0>:<EOL><INDENT>result[i] = result_invsq[i]**(-<NUM_LIT:0.5>)<EOL><DEDENT><DEDENT>return result<EOL>
Computes the distances between neighboring crystal planes