Skip to content

radiens_core.models.time_range

TimeRange — resolved, concrete time range with all fields populated.

Classes

TimeRange

Bases: BaseModel

A resolved, concrete time range.

All fields are populated after resolution from a TimeRangeSpec against dataset metadata or cache state.

sec : tuple[float, float] Start and end times in seconds (start, end). timestamp : tuple[int, int] Start and end times in samples (start_sample, end_sample). fs : float Sampling rate in Hz. dur_sec : float Duration in seconds. walltime_str : str Wall-clock time string (always UTC from backend). n : int Number of samples.

Attributes

walltime property
walltime

Parse walltime string to UTC-aware datetime.

The backend always provides walltime in UTC. This property returns a timezone-aware datetime with UTC timezone.