imas_paraview.cli.parse_time_options

imas_paraview.cli.parse_time_options(ids_time, index, time, all_times)

Parses the provided time options. Only a single time option (index, time or all_times) may be used. Either a single value ("5"), a list of values ("2,3,4") or a range of values ("2:4") may be provided for the index or time parameters.

Parameters:
index

String containing either a single index, a list of indices or a range of indices. Alternatively, it can be None.

time

String containing either a single time step, a list of time steps or a range of time steps. Alternatively, it can be None.

all_times

Boolean to convert all time steps

Returns:

A list containing the time indices to convert.


Last update: 2026-03-11