parse_time_specification¶
- gala.integrate.parse_time_specification(units, dt=None, n_steps=None, nsteps=None, t1=None, t2=None, t=None)[source]¶
Return an array of times given a few combinations of kwargs that are accepted – see below.
- Parameters
- dt, n_steps[, t1](
numeric
,int
[,numeric
]) A fixed timestep dt and a number of steps to run for.
- dt, t1, t2(
numeric
,numeric
,numeric
) A fixed timestep dt, an initial time, and an final time.
- dt, t1(array_like,
numeric
) An array of timesteps dt and an initial time.
- n_steps, t1, t2(
int
,numeric
,numeric
) Number of steps between an initial time, and a final time.
- tarray_like
An array of times (dts = t[1:] - t[:-1])
- dt, n_steps[, t1](