from_min_ms¶
- sonipy.from_min_ms(x, dtime_min)¶
Calculates a time scale in units of x value / time (ms), by matching the smallest time step in the x array to the input dtime_min.
- Parameters
- xarr
Array of x positions that will correspond to blip times.
- dtime_minfloat
Minimum allowed time difference between blips (in ms).
- Returns
- float
Returns a time scale calculated from the minimum dt.