step_from_interval

function of dascore.io.utils source

step_from_interval(
    seconds ,
)-> ‘Fraction | np.timedelta64’

The time step a file states as a sample interval in seconds.

The exact Fraction when the interval is a simple fraction (1 / 3000, 0.004), otherwise the nearest nanosecond timedelta, as before.