Data models
- class enlyze.models.Site[source]
Representation of a site in the ENLYZE platform.
Contains details about the site.
- class enlyze.models.Machine[source]
Representation of a machine in the ENLYZE platform.
Contains details about the machine.
- class enlyze.models.Variable[source]
Representation of a variable in the ENLYZE platform.
Contains details about the variable, but no timeseries data.
- data_type: VariableDataType
The underlying data type of the variable.
- class enlyze.models.VariableDataType[source]
Enumeration of variable data types. Compares to strings out-of-the-box:
>>> VariableDataType.INTEGER == 'INTEGER' True
- INTEGER = 'INTEGER'
- FLOAT = 'FLOAT'
- BOOLEAN = 'BOOLEAN'
- STRING = 'STRING'
- ARRAY_INTEGER = 'ARRAY_INTEGER'
- ARRAY_FLOAT = 'ARRAY_FLOAT'
- ARRAY_BOOLEAN = 'ARRAY_BOOLEAN'
- ARRAY_STRING = 'ARRAY_STRING'
- class enlyze.models.TimeseriesData[source]
Result of a request for timeseries data.
- to_dicts(use_display_names=False)[source]
Convert timeseries data into rows of
dict.Each row is returned as a dictionary with variable UUIDs as keys. Additionally, the
timecolumn is always present, containing timezone-awaredatetime.datetimelocalized in UTC.- Parameters:
use_display_names (bool) – Whether to return display names instead of variable UUIDs. If there is no display name, fall back to UUID.
- Returns:
Iterator over rows
- Raises:
DuplicateDisplayNameErrorwhen duplicate display names would be returned instead of UUIDs.- Return type:
- to_dataframe(use_display_names=False)[source]
Convert timeseries data into
pandas.DataFrameThe data frame will have an index named
timethat consists of timezone-awaredatetime.datetimelocalized in UTC. Each requested variables is represented as a column named by its UUID.- Parameters:
use_display_names (bool) – Whether to return display names instead of variable UUIDs. If there is no display name, fall back to UUID.
- Returns:
DataFrame with timeseries data indexed by time
- Raises:
DuplicateDisplayNameErrorwhen duplicate display names would be returned instead of UUIDs.- Return type:
- class enlyze.models.ResamplingMethod[source]
Resampling method to be used when resampling timeseries data.
- FIRST = 'first'
- LAST = 'last'
- MAX = 'max'
- MIN = 'min'
- COUNT = 'count'
- SUM = 'sum'
- AVG = 'avg'
- MEDIAN = 'median'
- class enlyze.models.OEEComponent[source]
Individual Overall Equipment Effectiveness (OEE) score
This is calculated by the ENLYZE platform based on a combination of real machine data and production order booking information provided by the customer.
For more information, please check out https://www.oee.com
- class enlyze.models.ProductionRun[source]
Representation of a production run in the ENLYZE platform.
Contains details about the production run.
- production_order: str
The identifier of the production order in the external system it was synchronized from.
- availability: OEEComponent | None
OEE component that reflects when the machine did not produce.
- performance: OEEComponent | None
OEE component that reflects how fast the machine has run.
- quality: OEEComponent | None
OEE component that reflects how much defects have been produced.
- productivity: OEEComponent | None
Aggregate OEE score that comprises availability, performance and quality.
- class enlyze.models.ProductionRuns[source]
Representation of multiple production runs.
- to_dataframe()[source]
Convert production runs into
pandas.DataFrameEach row in the dataframe represents one production run. The
startandendof every production run will be represented as timezone-awaredatetime.datetimelocalized in UTC.- Returns:
DataFrame with production runs.
- Return type: