salvus.flow.collections.types
Types for the SalvusFlow collection objects.
Classes
TimeAxis
TimeAxisclass TimeAxis(builtins.object):
def __init__(
self,
start_time: float,
reference_time: float,
number_of_samples: int,
dt: float,
) -> None:
...A time axis representation.
Parameters
start_timefloat — The start time in seconds.reference_timefloat — The reference time in seconds, e.g. what time zero refers to.number_of_samplesint — The number of samples.dtfloat — The sampling inverval in seconds.
Attributes
end_time float
end_time floatThe end time in seconds.
sampling_rate float
sampling_rate floatThe sampling rate in Hz.
Methods
from_start_end_dt()
from_start_end_dt()def from_start_end_dt(
start_time: float, end_time: float, dt: float, reference_time: float
) -> TimeAxis:
...Construct a time axis object from the start and end time as well as the sampling interval.
Parameters
start_timefloat — The start time in seconds.end_timefloat — The end time in seconds.dtfloat — The sampling inverval in seconds.reference_timefloat — The reference time.
Returns TimeAxis