preheat_open.measurements

measurements.py

This module defines classes and functions for handling measurements, including measurement handlers, mappers, and utilities for retrieving and renaming measurement data.

Classes:

MeasurementsHandler AmbigiuousMapError Mapper AttributeMapper MapApplier

Functions:

get_measurements

Functions

get_measurements(obj[, requests, date_range])

Retrieves measurements for the specified object and components.

Classes

AttrMap(attribute)

Maps a component to a string based on a specified attribute.

MapItem()

Abstract base class for mappers that map components to strings.

Mapper([map, convention, _components, ...])

Applies a mapping to components and renames DataFrame columns accordingly.

MeasurementRequest([query, components, ...])

MeasurementRequestHandler(obj, requests, ...)

MeasurementsRetriever(date_range, ...)

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

PostProcess(method[, params])

Post-processes a DataFrame after mapping.

StrMap(string)

Maps a component to a string based on a specified string.

Exceptions

AmbigiuousMapError

Exception raised when a mapping is ambiguous.