Module: meridian.data.time_coordinates

Deals with coordinate values in the time dimensions of input data.

Classes

class TimeCoordinates: A wrapper around time coordinates in Meridian's input data.

Functions

normalize_date(...): Normalizes the given date value into a datetime.date or None.

normalize_date_interval(...): Normalizes representations of a date interval into a tuple of dates.

normalize_date_str(...): Extracts the 'YYYY-MM-DD' prefix string from a date coordinate or string.

normalize_times(...): Returns a list of normalized 'YYYY-MM-DD' date strings from times.

normalize_times_set(...): Returns a set of normalized 'YYYY-MM-DD' date strings from times.

validate_selected_times(...): Raises an error if selected_times is invalid.

validate_time_coordinates(...): Validates that time follows the same rules as InputData.time.

Type Aliases

DateInterval

Date Instance of types.UnionType