def _steps_to_slices():
if not (conf.core.timesteps or conf.core.snapshots):<EOL><INDENT>conf.core.timesteps = None<EOL>conf.core.snapshots = slice(-<NUM_LIT:1>, None, None)<EOL>return<EOL><DEDENT>elif conf.core.snapshots:<EOL><INDENT>conf.core.timesteps = None<EOL>steps = conf.core.snapshots<EOL><DEDENT>else:<EOL><INDENT>conf.core.snapshots = None<EOL>steps = conf.core.timesteps<EOL><DEDENT>steps = steps.split('<STR_LIT::>')<EOL>steps[<NUM_LIT:0>] = int(steps[<NUM_LIT:0>]) if steps[<NUM_LIT:0>] else None<EOL>if len(steps) == <NUM_LIT:1>:<EOL><INDENT>steps.append(steps[<NUM_LIT:0>] + <NUM_LIT:1>)<EOL><DEDENT>steps[<NUM_LIT:1>] = int(steps[<NUM_LIT:1>]) if steps[<NUM_LIT:1>] else None<EOL>if len(steps) != <NUM_LIT:3>:<EOL><INDENT>steps = steps[<NUM_LIT:0>:<NUM_LIT:2>] + [<NUM_LIT:1>]<EOL><DEDENT>steps[<NUM_LIT:2>] = int(steps[<NUM_LIT:2>]) if steps[<NUM_LIT:2>] else None<EOL>steps = slice(*steps)<EOL>if conf.core.snapshots is not None:<EOL><INDENT>conf.core.snapshots = steps<EOL><DEDENT>else:<EOL><INDENT>conf.core.timesteps = steps<EOL><DEDENT>
parse timesteps and snapshots arguments and return slices