OzWrapper.OzAnomaly.data_provider.DataProvider

class OzWrapper.OzAnomaly.data_provider.DataProvider

Bases: abc.ABC

digraph inheritance4b3bb3efde { bgcolor=transparent; rankdir=TB; ratio=compress; size="8.0, 6.0"; "ABC" [URL="https://docs.python.org/3/library/abc.html#abc.ABC",fillcolor="#e8f4f8",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="filled,rounded",target="_top",tooltip="Helper class that provides a standard way to create an ABC using"]; "DataProvider" [URL="DataProvider.html#OzWrapper.OzAnomaly.data_provider.DataProvider",fillcolor="#e8f4f8",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="filled,rounded",target="_top",tooltip="Supplies recent sensor data to the anomaly detector."]; "ABC" -> "DataProvider" [arrowhead=empty,arrowsize=0.8,style="setlinewidth(0.5)"]; }

Supplies recent sensor data to the anomaly detector.

abstractmethod get_window(hours: int) Window | None

Return the last hours of sensor data as a column-oriented dict.

Parameters:

hours – Length of the window to return (typically 24 or 48).

Returns:

Dict mapping each parameter code to a numpy array of the same length, or None if insufficient data is available.

__slots__ = ()