def get_shear_distance(a):
cx, cy, cz = a.cell<EOL>if '<STR_LIT>' in a.info:<EOL><INDENT>assert abs(cx[<NUM_LIT:1>]) < <NUM_LIT>, '<STR_LIT>'.format(cx[<NUM_LIT:1>])<EOL>assert abs(cx[<NUM_LIT:2>]) < <NUM_LIT>, '<STR_LIT>'.format(cx[<NUM_LIT:2>])<EOL>assert abs(cy[<NUM_LIT:0>]) < <NUM_LIT>, '<STR_LIT>'.format(cy[<NUM_LIT:0>])<EOL>assert abs(cy[<NUM_LIT:2>]) < <NUM_LIT>, '<STR_LIT>'.format(cy[<NUM_LIT:2>])<EOL>assert abs(cz[<NUM_LIT:0>]) < <NUM_LIT>, '<STR_LIT>'.format(cz[<NUM_LIT:0>])<EOL>assert abs(cz[<NUM_LIT:1>]) < <NUM_LIT>, '<STR_LIT>'.format(cz[<NUM_LIT:1>])<EOL>dx, dy, dz = a.info['<STR_LIT>']<EOL><DEDENT>else:<EOL><INDENT>assert abs(cx[<NUM_LIT:1>]) < <NUM_LIT>, '<STR_LIT>'.format(cx[<NUM_LIT:1>])<EOL>assert abs(cx[<NUM_LIT:2>]) < <NUM_LIT>, '<STR_LIT>'.format(cx[<NUM_LIT:2>])<EOL>assert abs(cy[<NUM_LIT:0>]) < <NUM_LIT>, '<STR_LIT>'.format(cy[<NUM_LIT:0>])<EOL>assert abs(cy[<NUM_LIT:2>]) < <NUM_LIT>, '<STR_LIT>'.format(cy[<NUM_LIT:2>])<EOL>dx, dy, sz = cz<EOL><DEDENT>return dx, dy<EOL>
Returns the distance a volume has moved during simple shear. Considers
either Lees-Edwards boundary conditions or sheared cells.