Aux function.
(raw, start, stop)
| 2698 | |
| 2699 | |
| 2700 | def _check_start_stop(raw, start, stop): |
| 2701 | """Aux function.""" |
| 2702 | out = list() |
| 2703 | for st, none_ in ((start, 0), (stop, raw.n_times)): |
| 2704 | if st is None: |
| 2705 | out.append(none_) |
| 2706 | else: |
| 2707 | try: |
| 2708 | out.append(_ensure_int(st)) |
| 2709 | except TypeError: # not int-like |
| 2710 | out.append(raw.time_as_index(st)[0]) |
| 2711 | return out |
| 2712 | |
| 2713 | |
| 2714 | @verbose |
no test coverage detected