preheat_open.measurements.MeasurementsRetriever

class preheat_open.measurements.MeasurementsRetriever(date_range, components, adapter)

Bases: object

Handles the retrieval and processing of measurements for a given date range and components.

Variables:
  • date_range (DateRange) – The date range for which to retrieve measurements.

  • components (list[Component]) – The list of components to retrieve measurements for.

  • adapter (Adapter) – The adapter used to load measurements.

__init__(date_range, components, adapter)

Methods

__init__(date_range, components, adapter)

get_measurements()

Retrieves and processes measurements for the specified components and date range.

Attributes

date_range

components

adapter

get_measurements()

Retrieves and processes measurements for the specified components and date range.

Returns:

A DataFrame containing the measurements.

Return type:

pd.DataFrame