def _swaplch(LCH):
try: <EOL><INDENT>L,C,H = np.dsplit(LCH,<NUM_LIT:3>)<EOL>return np.dstack((H,C,L))<EOL><DEDENT>except: <EOL><INDENT>L,C,H = LCH<EOL>return H,C,L<EOL><DEDENT>
Reverse the order of an LCH numpy dstack or tuple for analysis.