# ts-shape > Manufacturing time-series analytics for pandas: events, KPIs, SPC and event logs from long-format signal data. This file contains links to documentation sections following the llmstxt.org standard. ## Table of Contents - [Event log (XES and OCEL)](https://ts-shape.github.io/ts-shape/guides/eventlog/): `ts_shape.eventlog` turns detector output into one canonical event log whose column names follow the OCEL 2.0 and XES standards. Use it to combine ... - [ts-shape](https://ts-shape.github.io/ts-shape/overview/): Overview of ts-shape: install, a first example from raw signals to an event log, and where to go next. - [Module Reference](https://ts-shape.github.io/ts-shape/modules/): One page per detector class: what it computes, a short runnable example, the methods with their key output columns, and the behavior worth knowing.... - [API Reference](https://ts-shape.github.io/ts-shape/reference/): Auto-generated API reference for all ts-shape modules. - [ts_shape.context](https://ts-shape.github.io/ts-shape/reference/ts_shape/context/): Context - [ts_shape.eventlog](https://ts-shape.github.io/ts-shape/reference/ts_shape/eventlog/): ts-shape canonical event-log package. - [ts_shape.eventlog.lambda_rules](https://ts-shape.github.io/ts-shape/reference/ts_shape/eventlog/lambda_rules/): Lambda-rule subsystem — declarative, YAML-driven detectors that share all canonical-event-log plumbing with the 290 built-in detector methods. - [ts_shape.events.correlation](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/correlation/): Correlation Events - [ts_shape.events.development](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/development/): Development Events - [ts_shape.events.energy](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/energy/): Energy Events - [ts_shape.events.engineering](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/engineering/): Engineering Events - [ts_shape.events](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/): Events - [ts_shape.events.maintenance](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/maintenance/): Maintenance Events - [ts_shape.events.production](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/production/): Production Events and Tracking - [ts_shape.events.profiling](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/profiling/): Profiling: mapping-free profiles of a machine from its raw PLC signals - [ts_shape.events.quality](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/quality/): Quality Events - [ts_shape.events.supplychain](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/supplychain/): Supply Chain Events - [ts_shape.features.cycles](https://ts-shape.github.io/ts-shape/reference/ts_shape/features/cycles/): Cycles - [ts_shape.features](https://ts-shape.github.io/ts-shape/reference/ts_shape/features/): Features - [ts_shape.features.segment_analysis](https://ts-shape.github.io/ts-shape/reference/ts_shape/features/segment_analysis/): Segment Analysis - [ts_shape.features.stats](https://ts-shape.github.io/ts-shape/reference/ts_shape/features/stats/): Statistics - [ts_shape.features.time_stats](https://ts-shape.github.io/ts-shape/reference/ts_shape/features/time_stats/): Time-Grouped Statistics - [ts_shape](https://ts-shape.github.io/ts-shape/reference/ts_shape/): ts-shape: Shape your timeseries data. - [ts_shape.loader.combine](https://ts-shape.github.io/ts-shape/reference/ts_shape/loader/combine/): Combine - [ts_shape.loader.context](https://ts-shape.github.io/ts-shape/reference/ts_shape/loader/context/): Context Loaders - [ts_shape.loader](https://ts-shape.github.io/ts-shape/reference/ts_shape/loader/): Loaders - [ts_shape.loader.metadata](https://ts-shape.github.io/ts-shape/reference/ts_shape/loader/metadata/): Metadata Loaders - [ts_shape.loader.timeseries](https://ts-shape.github.io/ts-shape/reference/ts_shape/loader/timeseries/): Timeseries Loaders - [ts_shape.signals](https://ts-shape.github.io/ts-shape/reference/ts_shape/signals/): Signal semantics: specs, inference and spec-driven primitives. - [ts_shape.transform.calculator](https://ts-shape.github.io/ts-shape/reference/ts_shape/transform/calculator/): Calculator - [ts_shape.transform.filter](https://ts-shape.github.io/ts-shape/reference/ts_shape/transform/filter/): Filters - [ts_shape.transform.functions](https://ts-shape.github.io/ts-shape/reference/ts_shape/transform/functions/): Functions - [ts_shape.transform](https://ts-shape.github.io/ts-shape/reference/ts_shape/transform/): Transform - [ts_shape.transform.time_functions](https://ts-shape.github.io/ts-shape/reference/ts_shape/transform/time_functions/): Time Functions - [ts_shape.utils](https://ts-shape.github.io/ts-shape/reference/ts_shape/utils/): Utils - [Installation](https://ts-shape.github.io/ts-shape/user_guide/installation/): ts-shape needs Python 3.13 or later and is tested on 3.13, 3.14 and 3.15. The core install depends only on pandas, numpy and scipy. - [Quick start](https://ts-shape.github.io/ts-shape/user_guide/quick_start/): This page walks through one analysis end to end. Every block runs as is, in order, after `pip install ts-shape`. - [Data model and layers](https://ts-shape.github.io/ts-shape/concept/): ts-shape is a set of pandas functions and classes. There is no runtime, store or scheduler: every step takes a DataFrame and returns one, so you ca... - [Naming and output conventions](https://ts-shape.github.io/ts-shape/naming/): One concept, one name. This page is the rule set for every detector, and the checklist for reviewing a new one. Older spellings still work: they ar... - [Chunked processing](https://ts-shape.github.io/ts-shape/guides/chunked-processing/): Some datasets do not fit in memory: a year of 1 Hz data from a few hundred signals is billions of rows. `ts_shape.run_chunked` processes such data ... - [Context and enrichment](https://ts-shape.github.io/ts-shape/guides/context/): Raw signals carry a `uuid` and a value. Reports and detectors usually need more: a description and unit per signal, tolerance limits, readable name... - [Energy](https://ts-shape.github.io/ts-shape/guides/energy/): How to get from a power signal to kWh, energy per part, idle waste and CO2e. The classes live in `ts_shape.events.energy`; `PowerIntegrator` is in ... - [Process engineering](https://ts-shape.github.io/ts-shape/guides/engineering/): How to measure the response to setpoint changes, detect startups and find steady states, ranges and disturbances. The classes live in... - [Adapters](https://ts-shape.github.io/ts-shape/guides/eventlog/adapters/): An adapter converts one detector's output frame into an `EventLog`. ts-shape has one generic adapter (`ts_shape.eventlog.adapters.adapt`), configur... - [Genealogy](https://ts-shape.github.io/ts-shape/guides/eventlog/genealogy/): Traceability asks two questions of the object relations in an `EventLog`: *where was this used?* (a recalled material lot: which batches, serials a... - [Object analytics](https://ts-shape.github.io/ts-shape/guides/eventlog/object-analytics/): Object detection tells you when each serial, carrier or batch was present at which station. The functions in `ts_shape.eventlog.analysis` turn thos... - [Object detection](https://ts-shape.github.io/ts-shape/guides/eventlog/objects/): Event detectors answer *what happened*. Object detection answers *to which thing*: the order, serial, batch, carrier, coil or recipe a signal carri... - [Labeling and taxonomy](https://ts-shape.github.io/ts-shape/guides/eventlog/taxonomy/): The rules that fill `ocel:activity` and the standard attributes of every event. They keep the events of any two detectors comparable without per-de... - [Cycles and segments](https://ts-shape.github.io/ts-shape/guides/feature-extraction/): Two ways to cut a time series into pieces you can compare: - [Lambda rules](https://ts-shape.github.io/ts-shape/guides/lambda-rules/): A lambda rule is a detector declared as data (YAML or a dict) instead of a Python class: a boolean trigger expression over the columns of a DataFra... - [Loading data](https://ts-shape.github.io/ts-shape/guides/loading/): Every loader returns a long-format DataFrame (`systime`, `uuid`, `value_*`). If you already have such a frame, from pandas or any other source, ski... - [Maintenance](https://ts-shape.github.io/ts-shape/guides/maintenance/): How to watch an asset wear out and plan the intervention: trends and health scores from condition signals, the time left until a limit, and MTBF, M... - [Features for ML](https://ts-shape.github.io/ts-shape/guides/ml-features/): How to turn long-format signals into inputs for a model or a comparison: summary statistics per signal, one feature row per order or cycle, profile... - [Object identification](https://ts-shape.github.io/ts-shape/guides/object-identification/): Object detection needs to know which signals carry ids and of what: `ObjectSpec("line:a", "serial")`. `identify_objects` finds those signals for yo... - [Object signal variants (test matrix)](https://ts-shape.github.io/ts-shape/guides/object-variants/): Machine builders do not agree on how objects appear in the time series. A material number, a serial, a cycle or a roll cut can be written in many w... - [Pipelines](https://ts-shape.github.io/ts-shape/guides/pipeline-builder/): `ts_shape.Pipeline` chains transforms and detectors into one definition that you can run on many DataFrames, print, and debug step by step. Use it ... - [Production and OEE](https://ts-shape.github.io/ts-shape/guides/production/): How to get machine states, downtime, OEE, shift figures and part traceability from run-state, counter and reason signals. The classes live in... - [Quality and SPC](https://ts-shape.github.io/ts-shape/guides/quality/): How to find outliers, apply control-chart rules and compute process capability. The classes live in `ts_shape.events.quality`. - [Signal semantics and data checks](https://ts-shape.github.io/ts-shape/guides/signals/): Most wrong numbers in industrial time-series analysis come from misreading what a signal is: - [Transforms and statistics](https://ts-shape.github.io/ts-shape/guides/transforms/): Filters, time conversions, calculations and harmonization take a long-format frame and return one. Statistics classes summarize a column. Most of t... - [AnomalyCorrelationEvents](https://ts-shape.github.io/ts-shape/modules/correlation/anomaly-correlation/): Correlates anomalies (z-score outliers) across signals: anomalies that occur together, cascades where one signal's anomaly is followed by another's... - [RootCauseCorrelationEvents](https://ts-shape.github.io/ts-shape/modules/correlation/root-cause-correlation/): Ranks candidate signals as possible causes of a set of detected events (stops, alarms, quality failures): for each candidate, the lead time at whic... - [SignalCorrelationEvents](https://ts-shape.github.io/ts-shape/modules/correlation/signal-correlation/): Rolling Pearson correlation between two signals, periods where a normally strong correlation breaks down, and the time lag at which they correlate ... - [CriticalParameterRankingEvents](https://ts-shape.github.io/ts-shape/modules/development/critical-parameter-ranking/): Ranks candidate process parameters by their statistical association with a per-run outcome (yield, a quality KPI), to shortlist the critical proces... - [DesignOfExperimentsEvents](https://ts-shape.github.io/ts-shape/modules/development/design-of-experiments/): Recovers the runs of a DOE campaign from historian data, where factor signals (setpoints) were stepped through a few levels, and estimates the main... - [DesignSpaceEvents](https://ts-shape.github.io/ts-shape/modules/development/design-space/): Fits a multivariate design space (the region of critical process parameters that qualification runs showed to deliver acceptable quality, as in ICH... - [GoldenBatchDeviationEvents](https://ts-shape.github.io/ts-shape/modules/development/golden-batch/): Scores how far a batch's trajectory of one signal (reactor temperature, pH, torque) deviates from a golden reference batch: the largest pointwise d... - [RecipePhaseAdherenceEvents](https://ts-shape.github.io/ts-shape/modules/development/recipe-phase-adherence/): Checks every phase of a batch (heat-up, hold, cool-down, …) against a recipe spec for duration, hold value, peak, trough and ramp rate, with pass/f... - [CarbonIntensityEvents](https://ts-shape.github.io/ts-shape/modules/energy/carbon-intensity/): CO2-equivalent emissions from energy and fuel meters with configurable emission factors: emissions per source and window, Scope 1 (fuel) and Scope ... - [EnergyConsumptionEvents](https://ts-shape.github.io/ts-shape/modules/energy/consumption-analysis/): Energy consumption per window, peak-demand windows, deviation from a rolling baseline, and energy per produced unit, from a meter signal of kWh del... - [EnergyEfficiencyEvents](https://ts-shape.github.io/ts-shape/modules/energy/efficiency-tracking/): Energy efficiency against production and machine state: output per kWh over time, energy used while the machine is idle, specific energy consumptio... - [EnergyPerformanceIndicatorEvents](https://ts-shape.github.io/ts-shape/modules/energy/energy-performance-indicator/): The energy performance indicator (EnPI, ISO 50001) of a line: energy per produced unit per window, compared with a rolling or a regression baseline... - [IdleEnergyDetectionEvents](https://ts-shape.github.io/ts-shape/modules/energy/idle-energy-detection/): Energy a machine draws while it is not producing: idle and running energy per window from a meter and a boolean run signal, idle waste per shift, a... - [PowerIntegrator](https://ts-shape.github.io/ts-shape/modules/energy/power-integration/): Integrates an instantaneous active-power signal (kW, e.g. `*.Total_Active_Power-kW`) into energy (kWh) per window, weighting each sample by how lon... - [ControlLoopHealthEvents](https://ts-shape.github.io/ts-shape/modules/engineering/control-loop-health/): Health of a control loop from its setpoint and actual value (and optionally the controller output), independent of setpoint changes: error integral... - [DisturbanceRecoveryEvents](https://ts-shape.github.io/ts-shape/modules/engineering/disturbance-recovery/): Process upsets on a signal (deviations from a rolling baseline or a setpoint), how long the process took to recover, how often upsets occur, and wh... - [MaterialBalanceEvents](https://ts-shape.github.io/ts-shape/modules/engineering/material-balance/): Mass, energy or flow balance per window: sum of input signals against sum of output signals, the imbalance trend, sustained imbalance events, and e... - [OperatingRangeEvents](https://ts-shape.github.io/ts-shape/modules/engineering/operating-range/): The operating envelope of a signal per window (min, percentiles, max), shifts of the operating point, time spent in, below and above a range, and a... - [ProcessStabilityIndexEvents](https://ts-shape.github.io/ts-shape/modules/engineering/process-stability/): One 0-100 stability score per window (e.g. per shift) for a signal, built from four 0-25 sub-scores for spread, bias, excursions and jitter; plus i... - [ProcessWindowEvents](https://ts-shape.github.io/ts-shape/modules/engineering/process-windows/): Descriptive statistics of a signal per time window, and the windows whose mean or spread changed against the previous window or stands out from all... - [RateOfChangeEvents](https://ts-shape.github.io/ts-shape/modules/engineering/rate-of-change/): Intervals where a signal changes faster than a rate limit, rate statistics per window, and sudden step jumps. - [SetpointChangeEvents](https://ts-shape.github.io/ts-shape/modules/engineering/setpoint-events/): Setpoint steps and ramps, and the response of the actual value after each change: settling time, rise time, overshoot and undershoot, decay rate an... - [SignalComparisonEvents](https://ts-shape.github.io/ts-shape/modules/engineering/signal-comparison/): Compares an actual signal with a reference signal (setpoint vs actual, sensor A vs sensor B): divergence intervals, deviation statistics per window... - [StartupDetectionEvents](https://ts-shape.github.io/ts-shape/modules/engineering/startup-detection/): Equipment startups in a numeric signal (speed, current, temperature): by threshold crossing with optional hysteresis, by sustained positive slope, ... - [SteadyStateDetectionEvents](https://ts-shape.github.io/ts-shape/modules/engineering/steady-state/): Steady-state intervals (rolling standard deviation below a threshold) and transient intervals of a signal, the share of time steady, and the operat... - [ThresholdMonitoringEvents](https://ts-shape.github.io/ts-shape/modules/engineering/threshold-monitoring/): Intervals above (or below) named threshold levels, alarm intervals with hysteresis, time above a threshold per window, and the exceedance trend. - [TimeToThresholdEvents](https://ts-shape.github.io/ts-shape/modules/engineering/time-to-threshold/): Forecasts when a trending signal (e.g. filter differential pressure, wear) will cross a threshold, by fitting a straight line to the recent data. - [WarmUpCoolDownEvents](https://ts-shape.github.io/ts-shape/modules/engineering/warmup-analysis/): Warm-up and cool-down ramps of a signal (ovens, extruders, molds, hydraulics), their consistency, and the time from each ramp start to a target value. - [AssetHealthIndexEvents](https://ts-shape.github.io/ts-shape/modules/maintenance/asset-health-index/): One 0-100 health score per asset and window, fused from several condition signals (vibration, temperature, motor current), each tagged with the fai... - [DegradationDetectionEvents](https://ts-shape.github.io/ts-shape/modules/maintenance/degradation-detection/): Slow degradation in a sensor signal: sustained trends, growing variance, permanent level shifts, and a composite 0-100 health score against a basel... - [FailurePredictionEvents](https://ts-shape.github.io/ts-shape/modules/maintenance/failure-prediction/): Remaining useful life by linear extrapolation of the recent trend to a failure threshold, escalating warning/critical exceedances per window, and t... - [ReliabilityEvents](https://ts-shape.github.io/ts-shape/modules/maintenance/reliability/): MTBF, MTTR, inherent availability and failure rate (overall or per calendar window), and a Weibull life model, from a signal that says whether an a... - [VibrationAnalysisEvents](https://ts-shape.github.io/ts-shape/modules/maintenance/vibration-analysis/): Rolling RMS above a healthy baseline, growth of peak-to-peak amplitude, and bearing health indicators (RMS, peak, crest factor, kurtosis) per windo... - [AlarmManagementEvents](https://ts-shape.github.io/ts-shape/modules/production/alarm-management/): Alarm frequency, alarm-on durations, chattering and standing alarms (ISA-18.2 style) from one boolean alarm signal (`value_bool`, True = active). - [BatchTrackingEvents](https://ts-shape.github.io/ts-shape/modules/production/batch-tracking/): Batches, their durations and yields from a batch-ID string signal. A batch is a run of constant batch-ID values; a new batch starts when the value ... - [BottleneckDetectionEvents](https://ts-shape.github.io/ts-shape/modules/production/bottleneck-detection/): Finds the station that constrains a line: the one with the highest utilization per window, from one boolean run signal per station. - [ChangeoverEvents](https://ts-shape.github.io/ts-shape/modules/production/changeover/): Product or recipe changes as point events, and changeover windows that end after a fixed time or once process metrics are stable again, from a prod... - [ContinuousProcessAlignmentEvents](https://ts-shape.github.io/ts-shape/modules/production/continuous-process-alignment/): Puts readings from stations along a continuous line (extrusion, rolling, film, paper, cable) onto the same piece of material by shifting each stati... - [CycleTimeEvents](https://ts-shape.github.io/ts-shape/modules/production/cycle-time/): Cycle times per part number from a part-number string signal and a cycle-complete trigger (boolean or integer). A cycle time is the time between co... - [DowntimeEvents](https://ts-shape.github.io/ts-shape/modules/production/downtime/): Downtime and availability per shift, per reason code and over time, from a machine-state signal and an optional reason-code signal. - [DutyCycleEvents](https://ts-shape.github.io/ts-shape/modules/production/duty-cycle/): On/off intervals, duty cycle per window, transition counts and excessive cycling from one boolean signal (True = on), e.g. a heater, motor or valve. - [FlowConstraintEvents](https://ts-shape.github.io/ts-shape/modules/production/flow-constraints/): Blocked and starved intervals between an upstream and a downstream station, from the two stations' boolean run signals. - [FlowMetricsEvents](https://ts-shape.github.io/ts-shape/modules/production/flow-metrics/): Work in process, throughput and lead time between an entry and an exit signal (two boolean signals such as light barriers or part-present bits), ch... - [LineBalancingEvents](https://ts-shape.github.io/ts-shape/modules/production/line-balancing/): Station cycle times, line balance efficiency, balance delay, smoothness index, the bottleneck station and a Yamazumi table, from one cycle-completi... - [LineThroughputEvents](https://ts-shape.github.io/ts-shape/modules/production/line-throughput/): Parts per window, takt adherence, a counter-only OEE estimate and throughput trends from a part counter and/or a cycle trigger. - [LongDowntimeEvents](https://ts-shape.github.io/ts-shape/modules/production/long-downtime/): Downtimes longer than a threshold (default 3 h) in a run/stop signal, and the production counted between consecutive long stops. Use it for weekend... - [MachineStateEvents](https://ts-shape.github.io/ts-shape/modules/production/machine-state/): Run and idle intervals, transitions, rapid toggling and state-data quality from a boolean run signal (True = running). - [MicroStopEvents](https://ts-shape.github.io/ts-shape/modules/production/micro-stops/): Short idle intervals (default under 30 s), their frequency, the time they cost and when in the day they cluster, from a boolean run signal (True = ... - [MultiProcessTraceabilityEvents](https://ts-shape.github.io/ts-shape/modules/production/multi-process-traceability/): Item timelines, lead times, parallel processing and routing paths across a station topology with parallel cells, merges and splits. Each station pu... - [OEEEvents](https://ts-shape.github.io/ts-shape/modules/production/oee-calculator/): Daily OEE = Availability × Performance × Quality from a boolean run signal, a part counter with an ideal cycle time, and optional total/reject coun... - [OperatingStateEvents](https://ts-shape.github.io/ts-shape/modules/production/operating-state/): Operating states inferred from one continuous signal (spindle current, power, vibration) when the machine logs no explicit run/idle flag: state int... - [OperatorPerformanceEvents](https://ts-shape.github.io/ts-shape/modules/production/operator-performance/): Output, efficiency against a per-shift target, first-pass yield and a ranking per operator, from an operator-ID string signal and part counters. - [ValueTraceabilityEvents](https://ts-shape.github.io/ts-shape/modules/production/order-traceability/): Timeline, lead time and current location of a shared identifier (serial number, order ID, batch code) across stations, where each station writes th... - [PartProductionEvents](https://ts-shape.github.io/ts-shape/modules/production/part-tracking/): Quantities per part number per window, per day and in total, from a part-number string signal and a production counter (`value_integer`). - [PerformanceLossEvents](https://ts-shape.github.io/ts-shape/modules/production/performance-loss/): Speed losses: performance against a target cycle time per shift, per window and over time, from a part counter or cycle trigger. - [PeriodSummaryEvents](https://ts-shape.github.io/ts-shape/modules/production/period-summary/): Weekly and monthly production summaries and a comparison of two date ranges from a production counter, or a weekly/monthly roll-up of any daily met... - [QualityEvents](https://ts-shape.github.io/ts-shape/modules/production/quality-tracking/): NOK counts, NOK rate and first-pass yield per shift, per day and per part number, and a defect-reason Pareto, from cumulative OK/NOK counters. - [ReworkEvents](https://ts-shape.github.io/ts-shape/modules/production/rework-tracking/): Rework counts per shift, per reason and over time, the rework rate against total production, and rework cost per part number, from a cumulative rew... - [RoutingTraceabilityEvents](https://ts-shape.github.io/ts-shape/modules/production/routing-traceability/): Item routing from an item-ID signal paired with a routing/state signal whose value encodes the current process step or station; useful when one sta... - [RuntimeAccountingEvents](https://ts-shape.github.io/ts-shape/modules/production/runtime-accounting/): Operating hours from one boolean run signal: run and idle time, utilization, start count, run time per window and a cumulative hour meter. Use it f... - [ProductionScheduleAdherenceEvents](https://ts-shape.github.io/ts-shape/modules/production/schedule-adherence/): Planned against actual production for each scheduled period (shift, work order), the rate needed to recover a period that is behind, alerts for per... - [ScrapEvents](https://ts-shape.github.io/ts-shape/modules/production/scrap-tracking/): Scrap quantity (weight or count) per shift, per reason and over time, and scrap cost per part or material, from a cumulative scrap signal (... - [SetupTimeEvents](https://ts-shape.github.io/ts-shape/modules/production/setup-time/): Setup (changeover) durations, statistics per product transition and trends, from a machine-state string signal in which setup rows carry a given va... - [ShiftHandoverEvents](https://ts-shape.github.io/ts-shape/modules/production/shift-handover/): A shift handover report (production against target, quality, availability, downtime; one row per shift) and the list of metrics below threshold, fr... - [ShiftReportEvents](https://ts-shape.github.io/ts-shape/modules/production/shift-reporting/): Production per shift, shift-to-shift comparison, actual against per-shift targets, and the best and worst shifts, from a production counter. - [TargetEvents](https://ts-shape.github.io/ts-shape/modules/production/target-tracking/): Actual against target per shift or per day, and the share of days on target, for any counter signal. - [CycleProfileEvents](https://ts-shape.github.io/ts-shape/modules/profiling/cycle-profiling/): Mapping-free cycle time profiling of one PLC. Give it every raw signal of a machine controller; it finds the cycle by itself, learns the standard s... - [Unit profilers (mapping-free)](https://ts-shape.github.io/ts-shape/modules/profiling/unit-profiles/): The cycle profiler answers *where does the cycle time go?* from the raw signals of one PLC, without naming any signal. The unit profilers ask the s... - [AnomalyClassificationEvents](https://ts-shape.github.io/ts-shape/modules/quality/anomaly-classification/): Finds anomalous windows in a numeric signal and labels them spike, drift, oscillation, flatline or level shift; each type also has its own detector. - [CalibrationValidationEvents](https://ts-shape.github.io/ts-shape/modules/quality/calibration-validation/): Checks whether an inline sensor still reads true: linearity and a fitted calibration curve from a multi-point check, and per-window bias, drift and... - [CapabilityTrendingEvents](https://ts-shape.github.io/ts-shape/modules/quality/capability-trending/): Cp, Cpk, Pp and Ppk per time window, alerts when Cpk drops, a linear Cpk forecast, and estimated yield/DPMO/sigma level, for a numeric signal with ... - [ChangePointEvents](https://ts-shape.github.io/ts-shape/modules/quality/change-point/): Finds every sample where a signal's level (or level and spread) shifts, such as tool changes, new material lots or recalibrations, and the stable s... - [DataGapAnalysisEvents](https://ts-shape.github.io/ts-shape/modules/quality/data-gap-analysis/): Gaps in a signal's history (historian outages, network drops, a PLC that stopped publishing): gap intervals, one summary row, coverage per period, ... - [EnvironmentalCompensationEvents](https://ts-shape.github.io/ts-shape/modules/quality/environmental-compensation/): How much an environmental condition (temperature, humidity, pressure) moves an inline measurement: correlation and sensitivity per window, a compen... - [GaugeRepeatabilityEvents](https://ts-shape.github.io/ts-shape/modules/quality/gauge-rr/): Gauge R&R (measurement system analysis) for an inline sensor from repeated measurements of reference parts: equipment variation (repeatability), ap... - [MeasurementUncertaintyEvents](https://ts-shape.github.io/ts-shape/modules/quality/measurement-uncertainty/): Measurement uncertainty per the GUM (ISO/IEC Guide 98-3): Type A from the scatter of repeated readings per window, Type B from sources you supply (... - [MultiSensorValidationEvents](https://ts-shape.github.io/ts-shape/modules/quality/multi-sensor-validation/): Cross-checks redundant sensors that measure the same variable: windows where they disagree, pairwise bias, a consensus score, and which sensor devi... - [MultivariateSPCEvents](https://ts-shape.github.io/ts-shape/modules/quality/multivariate-spc/): Hotelling T² control chart for correlated variables. It catches faults that break the relationship between variables while each stays inside its ow... - [OutlierDetectionEvents](https://ts-shape.github.io/ts-shape/modules/quality/outlier-detection/): Outlier samples by Z-score, IQR, MAD or Isolation Forest, scored per signal, with outliers close in time grouped together. - [SamplingResolutionEvents](https://ts-shape.github.io/ts-shape/modules/quality/sampling-resolution/): Checks whether a signal's sampling is fine enough for the process: quantization (too few distinct values), effective vs theoretical resolution, ali... - [SensorDriftEvents](https://ts-shape.github.io/ts-shape/modules/quality/sensor-drift/): Calibration drift of an inline sensor per window: zero-point offset, span (gain) changes, the trend of the window mean or spread, and a 0-100 calib... - [SignalQualityEvents](https://ts-shape.github.io/ts-shape/modules/quality/signal-quality/): Data-quality checks for one numeric signal: gaps against an expected sampling interval, sampling regularity, values outside a physical range, and c... - [StatisticalProcessControlEvents](https://ts-shape.github.io/ts-shape/modules/quality/spc/): Shewhart control-chart rules (the eight Nelson tests, including the Western Electric zone rules), dynamic control limits and CUSUM shift detection.... - [ToleranceDeviationEvents](https://ts-shape.github.io/ts-shape/modules/quality/tolerance-deviation/): Samples of a measurement outside its specification limits, grouped into events with deviation size and severity, and the capability indices Cp, Cpk... - [ValueDistributionEvents](https://ts-shape.github.io/ts-shape/modules/quality/value-distribution/): Distribution changes of a numeric signal: the dominant mode per window and when it moves, a bimodality check, normality per window, and percentile ... - [DemandPatternEvents](https://ts-shape.github.io/ts-shape/modules/supplychain/demand-patterns/): Demand per period (total, average, peak), demand spikes, and day-of-week or hour-of-day patterns, from a numeric demand signal (one value per order... - [InventoryMonitoringEvents](https://ts-shape.github.io/ts-shape/modules/supplychain/inventory-monitoring/): Low-stock intervals, consumption rate, reorder-point and safety-stock breaches, and time to stockout, from a stock-level signal. - [LeadTimeAnalysisEvents](https://ts-shape.github.io/ts-shape/modules/supplychain/lead-time-analysis/): Lead times between order placement and delivery events, their statistics, and abnormally long deliveries. - [ts_shape.catalog](https://ts-shape.github.io/ts-shape/reference/ts_shape/catalog/): Programmatic catalog of ts-shape's public classes. - [ts_shape.context.value_mapping](https://ts-shape.github.io/ts-shape/reference/ts_shape/context/value_mapping/): Name | Description ---- | ----------- `ValueMapper` | A class to map values from specified columns of a DataFrame using a mapping table (CSV or JSO... - [ts_shape.datasets](https://ts-shape.github.io/ts-shape/reference/ts_shape/datasets/): Synthetic timeseries generators for trying out ts-shape. - [ts_shape.errors](https://ts-shape.github.io/ts-shape/reference/ts_shape/errors/): Custom warnings and exceptions for ts-shape. - [ts_shape.eventlog.adapters](https://ts-shape.github.io/ts-shape/reference/ts_shape/eventlog/adapters/): Shape-driven adapters that convert detector frames (the DataFrames detectors return) into the canonical :class:`~ts_shape.eventlog.model.EventLog`. - [ts_shape.eventlog.align](https://ts-shape.github.io/ts-shape/reference/ts_shape/eventlog/align/): Align the ``events`` tables of multiple :class:`EventLog` instances to a shared column set. - [ts_shape.eventlog.analysis](https://ts-shape.github.io/ts-shape/reference/ts_shape/eventlog/analysis/): Object analytics: lead time, dwell, WIP, carrier loops and counts per object. - [ts_shape.eventlog.archetypes](https://ts-shape.github.io/ts-shape/reference/ts_shape/eventlog/archetypes/): Archetype classification for every entry in :data:`ts_shape.eventlog.taxonomy.REGISTRY`. - [ts_shape.eventlog.concat](https://ts-shape.github.io/ts-shape/reference/ts_shape/eventlog/concat/): Concatenate multiple :class:`EventLog` instances into one. - [ts_shape.eventlog.flat](https://ts-shape.github.io/ts-shape/reference/ts_shape/eventlog/flat/): XES-flat exporter — produces a pandas DataFrame with ``case:concept:name``, ``concept:name``, ``time:timestamp``, ``lifecycle:transition``, ``org:r... - [ts_shape.eventlog.introspect](https://ts-shape.github.io/ts-shape/reference/ts_shape/eventlog/introspect/): Introspection: answer "what does this detector method emit?". - [ts_shape.eventlog.lambda_rules.backtest](https://ts-shape.github.io/ts-shape/reference/ts_shape/eventlog/lambda_rules/backtest/): Minimal hit-count backtest for lambda rules. - [ts_shape.eventlog.lambda_rules.detector](https://ts-shape.github.io/ts-shape/reference/ts_shape/eventlog/lambda_rules/detector/): ``LambdaDetector`` — the runtime object produced by ``register_lambda_rule``. - [ts_shape.eventlog.lambda_rules.evaluator](https://ts-shape.github.io/ts-shape/reference/ts_shape/eventlog/lambda_rules/evaluator/): Shape-specific evaluators that turn a compiled trigger into a detector DataFrame in the same format the shape-driven adapter already consumes. - [ts_shape.eventlog.lambda_rules.expression](https://ts-shape.github.io/ts-shape/reference/ts_shape/eventlog/lambda_rules/expression/): AST-restricted Python expression compiler. - [ts_shape.eventlog.lambda_rules.loader](https://ts-shape.github.io/ts-shape/reference/ts_shape/eventlog/lambda_rules/loader/): Registration helpers + YAML/dict loaders for lambda rules. - [ts_shape.eventlog.lambda_rules.spec](https://ts-shape.github.io/ts-shape/reference/ts_shape/eventlog/lambda_rules/spec/): Declarative rule spec for the lambda-rule subsystem. - [ts_shape.eventlog.model](https://ts-shape.github.io/ts-shape/reference/ts_shape/eventlog/model/): The :class:`EventLog` dataclass — the OCEL 2.0 relational tables. - [ts_shape.eventlog.normalizer](https://ts-shape.github.io/ts-shape/reference/ts_shape/eventlog/normalizer/): Public ``to_event_log`` entry point — looks up the adapter and runs it. - [ts_shape.eventlog.objects](https://ts-shape.github.io/ts-shape/reference/ts_shape/eventlog/objects/): Object detection — turn identifier-bearing timeseries signals into OCEL 2.0 objects, relations, and time-varying attributes. - [ts_shape.eventlog.ocel](https://ts-shape.github.io/ts-shape/reference/ts_shape/eventlog/ocel/): OCEL 2.0–shaped exporter — returns the relational tables. - [ts_shape.eventlog.profiler_rules](https://ts-shape.github.io/ts-shape/reference/ts_shape/eventlog/profiler_rules/): Event-log rules of the mapping-free unit profilers, in one place. - [ts_shape.eventlog.query](https://ts-shape.github.io/ts-shape/reference/ts_shape/eventlog/query/): Genealogy (traceability) queries and coherent sub-logs of an :class:`EventLog`. - [ts_shape.eventlog.schema](https://ts-shape.github.io/ts-shape/reference/ts_shape/eventlog/schema/): Column-name constants and schema definitions for the ts-shape event log. - [ts_shape.eventlog.taxonomy](https://ts-shape.github.io/ts-shape/reference/ts_shape/eventlog/taxonomy/): Per-method label rules — the source of truth for ``ocel:activity`` names. - [ts_shape.events.correlation.anomaly_correlation](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/correlation/anomaly_correlation/): Name | Description ---- | ----------- `AnomalyCorrelationEvents` | Correlation: Anomaly Correlation Analysis - [ts_shape.events.correlation.root_cause_correlation](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/correlation/root_cause_correlation/): Event-driven root-cause ranking: which signal led the events we detected? - [ts_shape.events.correlation.signal_correlation](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/correlation/signal_correlation/): Name | Description ---- | ----------- `SignalCorrelationEvents` | Correlation: Signal Correlation Analysis - [ts_shape.events.development.critical_parameter_ranking](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/development/critical_parameter_ranking/): Outcome-driven ranking of candidate critical process parameters (CPPs). - [ts_shape.events.development.design_of_experiments](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/development/design_of_experiments/): Design-of-Experiments (DOE) run segmentation and effect estimation. - [ts_shape.events.development.design_space](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/development/design_space/): Multivariate design-space qualification and monitoring. - [ts_shape.events.development.golden_batch](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/development/golden_batch/): Golden-batch deviation: compare new batch trajectories to a reference. - [ts_shape.events.development.recipe_phase_adherence](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/development/recipe_phase_adherence/): Recipe-phase adherence: check each batch phase against a spec. - [ts_shape.events.energy.carbon_intensity](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/energy/carbon_intensity/): Name | Description ---- | ----------- `CarbonIntensityEvents` | Energy: Carbon Intensity Tracking (Scope 1 & 2) - [ts_shape.events.energy.consumption_analysis](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/energy/consumption_analysis/): Name | Description ---- | ----------- `EnergyConsumptionEvents` | Energy: Consumption Analysis - [ts_shape.events.energy.efficiency_tracking](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/energy/efficiency_tracking/): Name | Description ---- | ----------- `EnergyEfficiencyEvents` | Energy: Efficiency Tracking - [ts_shape.events.energy.energy_performance_indicator](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/energy/energy_performance_indicator/): Name | Description ---- | ----------- `EnergyPerformanceIndicatorEvents` | Energy: Performance Indicator (EnPI) per ISO 50001 - [ts_shape.events.energy.idle_energy_detection](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/energy/idle_energy_detection/): Name | Description ---- | ----------- `IdleEnergyDetectionEvents` | Energy: Idle Energy Detection - [ts_shape.events.engineering.control_loop_health](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/engineering/control_loop_health/): Name | Description ---- | ----------- `ControlLoopHealthEvents` | Engineering: Control Loop Health - [ts_shape.events.engineering.disturbance_recovery](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/engineering/disturbance_recovery/): Name | Description ---- | ----------- `DisturbanceRecoveryEvents` | Engineering: Disturbance / Upset Detection and Recovery - [ts_shape.events.engineering.material_balance](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/engineering/material_balance/): Name | Description ---- | ----------- `MaterialBalanceEvents` | Engineering: Material / Energy Balance - [ts_shape.events.engineering.operating_range](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/engineering/operating_range/): Name | Description ---- | ----------- `OperatingRangeEvents` | Engineering: Operating Range Analysis - [ts_shape.events.engineering.process_stability_index](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/engineering/process_stability_index/): Name | Description ---- | ----------- `ProcessStabilityIndexEvents` | Engineering: Process Stability Index - [ts_shape.events.engineering.process_window](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/engineering/process_window/): Name | Description ---- | ----------- `ProcessWindowEvents` | Engineering: Process Window Analysis - [ts_shape.events.engineering.rate_of_change](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/engineering/rate_of_change/): Name | Description ---- | ----------- `RateOfChangeEvents` | Engineering: Rate of Change Events - [ts_shape.events.engineering.setpoint_events](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/engineering/setpoint_events/): Name | Description ---- | ----------- `SetpointChangeEvents` | Detect step/ramp changes on a setpoint signal and compute follow-up KPIs - [ts_shape.events.engineering.signal_comparison](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/engineering/signal_comparison/): Name | Description ---- | ----------- `SignalComparisonEvents` | Engineering: Signal Comparison - [ts_shape.events.engineering.startup_events](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/engineering/startup_events/): Name | Description ---- | ----------- `StartupDetectionEvents` | Detect equipment startup intervals based on threshold crossings or - [ts_shape.events.engineering.steady_state_detection](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/engineering/steady_state_detection/): Name | Description ---- | ----------- `SteadyStateDetectionEvents` | Engineering: Steady-State Detection - [ts_shape.events.engineering.threshold_monitoring](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/engineering/threshold_monitoring/): Name | Description ---- | ----------- `ThresholdMonitoringEvents` | Engineering: Threshold Monitoring - [ts_shape.events.engineering.time_to_threshold](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/engineering/time_to_threshold/): Name | Description ---- | ----------- `TimeToThresholdEvents` | Engineering: Time-to-Threshold Prediction - [ts_shape.events.engineering.warmup_analysis](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/engineering/warmup_analysis/): Name | Description ---- | ----------- `WarmUpCoolDownEvents` | Engineering: Warm-Up / Cool-Down Analysis - [ts_shape.events.maintenance.asset_health_index](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/maintenance/asset_health_index/): Asset health index: fuse several degradation signals into one score. - [ts_shape.events.maintenance.degradation_detection](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/maintenance/degradation_detection/): Name | Description ---- | ----------- `DegradationDetectionEvents` | Detect degradation patterns in time series signals: trend degradation, - [ts_shape.events.maintenance.failure_prediction](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/maintenance/failure_prediction/): Name | Description ---- | ----------- `FailurePredictionEvents` | Predict remaining useful life and detect escalating failure patterns - [ts_shape.events.maintenance.reliability](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/maintenance/reliability/): Reliability: MTBF, MTTR and Weibull life analysis from a failure-state signal. - [ts_shape.events.maintenance.vibration_analysis](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/maintenance/vibration_analysis/): Name | Description ---- | ----------- `VibrationAnalysisEvents` | Analyze vibration signals from industrial equipment: RMS exceedance, - [ts_shape.events.production.alarm_management](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/production/alarm_management/): ISA-18.2 style alarm analysis. - [ts_shape.events.production.batch_tracking](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/production/batch_tracking/): Batch / recipe production tracking. - [ts_shape.events.production.bottleneck_detection](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/production/bottleneck_detection/): Name | Description ---- | ----------- `BottleneckDetectionEvents` | Production: Bottleneck Detection - [ts_shape.events.production.changeover](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/production/changeover/): Name | Description ---- | ----------- `ChangeoverEvents` | Production: Changeover - [ts_shape.events.production.continuous_process_alignment](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/production/continuous_process_alignment/): Continuous-process alignment: transport-lag compensation for multi-station lines. - [ts_shape.events.production.cycle_time_tracking](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/production/cycle_time_tracking/): Cycle time tracking by part number. - [ts_shape.events.production.downtime_tracking](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/production/downtime_tracking/): Downtime tracking by shift and reason. - [ts_shape.events.production.duty_cycle](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/production/duty_cycle/): Name | Description ---- | ----------- `DutyCycleEvents` | Production: Duty Cycle Analysis - [ts_shape.events.production.flow_constraints](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/production/flow_constraints/): Name | Description ---- | ----------- `FlowConstraintEvents` | Production: Flow Constraints - [ts_shape.events.production.flow_metrics](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/production/flow_metrics/): Flow metrics and Little's Law analysis for production lines. - [ts_shape.events.production.line_balancing](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/production/line_balancing/): Line balancing and takt analysis for assembly / production lines. - [ts_shape.events.production.line_throughput](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/production/line_throughput/): Name | Description ---- | ----------- `LineThroughputEvents` | Production: Line Throughput - [ts_shape.events.production.long_downtime_events](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/production/long_downtime_events/): Name | Description ---- | ----------- `LongDowntimeEvents` | Production: Long Downtime Detection - [ts_shape.events.production.machine_state](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/production/machine_state/): Name | Description ---- | ----------- `MachineStateEvents` | Production: Machine State - [ts_shape.events.production.micro_stop_detection](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/production/micro_stop_detection/): Name | Description ---- | ----------- `MicroStopEvents` | Production: Micro-Stop Detection - [ts_shape.events.production.multi_process_traceability](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/production/multi_process_traceability/): Multi-process traceability across parallel and sequential stations. - [ts_shape.events.production.oee_calculator](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/production/oee_calculator/): Overall Equipment Effectiveness (OEE) calculator. - [ts_shape.events.production.operating_state](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/production/operating_state/): Name | Description ---- | ----------- `OperatingStateEvents` | Production: Operating State Inference - [ts_shape.events.production.operator_performance](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/production/operator_performance/): Operator/team performance tracking. - [ts_shape.events.production.order_traceability](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/production/order_traceability/): Value-based traceability across stations. - [ts_shape.events.production.pareto](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/production/pareto/): Pareto ranking of categorical values per time window. - [ts_shape.events.production.part_tracking](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/production/part_tracking/): Production tracking by part number. - [ts_shape.events.production.performance_loss](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/production/performance_loss/): Performance/speed loss tracking. - [ts_shape.events.production.period_summary](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/production/period_summary/): Weekly/monthly summary module. - [ts_shape.events.production.quality_tracking](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/production/quality_tracking/): Quality and NOK (defective parts) tracking. - [ts_shape.events.production.rework_tracking](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/production/rework_tracking/): Rework tracking for parts requiring re-processing. - [ts_shape.events.production.routing_traceability](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/production/routing_traceability/): Routing-based traceability using ID + state/handover signals. - [ts_shape.events.production.runtime_accounting](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/production/runtime_accounting/): Runtime / operating-hours accounting for equipment. - [ts_shape.events.production.schedule_adherence](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/production/schedule_adherence/): Production schedule adherence: planned quantity vs. what the line made. - [ts_shape.events.production.scrap_tracking](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/production/scrap_tracking/): Scrap and material waste tracking. - [ts_shape.events.production.setup_time_tracking](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/production/setup_time_tracking/): Setup/changeover time tracking for SMED analysis. - [ts_shape.events.production.shift_handover](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/production/shift_handover/): Automated shift handover report generation. - [ts_shape.events.production.shift_reporting](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/production/shift_reporting/): Shift-based production reporting. - [ts_shape.events.production.target_tracking](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/production/target_tracking/): Target vs actual comparison module. - [ts_shape.events.profiling.changeovers](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/profiling/changeovers/): Mapping-free changeover (SMED) and start-up profiling. - [ts_shape.events.profiling.control_loops](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/profiling/control_loops/): Mapping-free control-loop profiler: find the loops, rank their health. - [ts_shape.events.profiling.curves](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/profiling/curves/): Mapping-free curve signatures: recurring fault shapes of analog curves. - [ts_shape.events.profiling.cycles](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/profiling/cycles/): Mapping-free cycle time profiling of one PLC. - [ts_shape.events.profiling.handshakes](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/profiling/handshakes/): Mapping-free handshake profiling: who makes the machine wait? - [ts_shape.events.profiling.orders](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/profiling/orders/): Mapping-free order and scrap profiling. - [ts_shape.events.profiling.result](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/profiling/result/): Result types of the mapping-free profilers. - [ts_shape.events.profiling.runner](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/profiling/runner/): Cycle time profiling of one PLC from the two inputs ts-shape loads. - [ts_shape.events.profiling.settings](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/profiling/settings/): Mapping-free setting-change impact: did that parameter change help? - [ts_shape.events.profiling.stops](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/profiling/stops/): Mapping-free stop profiling: why does the machine stop, what does it cost? - [ts_shape.events.profiling.units](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/profiling/units/): Run the cycle profile and the mapping-free unit profilers in one go. - [ts_shape.events.quality.anomaly_classification](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/quality/anomaly_classification/): Name | Description ---- | ----------- `AnomalyClassificationEvents` | Quality: Anomaly Classification - [ts_shape.events.quality.calibration_validation](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/quality/calibration_validation/): Name | Description ---- | ----------- `CalibrationValidationEvents` | Quality: Calibration Validation & Linearity - [ts_shape.events.quality.capability_trending](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/quality/capability_trending/): Name | Description ---- | ----------- `CapabilityTrendingEvents` | Quality: Process Capability Trending - [ts_shape.events.quality.change_point](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/quality/change_point/): Change-point detection: where did the process level (or spread) shift? - [ts_shape.events.quality.data_gap_analysis](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/quality/data_gap_analysis/): Name | Description ---- | ----------- `DataGapAnalysisEvents` | Quality: Data Gap Analysis - [ts_shape.events.quality.environmental_compensation](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/quality/environmental_compensation/): Name | Description ---- | ----------- `EnvironmentalCompensationEvents` | Quality: Environmental Compensation for Inline Sensors - [ts_shape.events.quality.gauge_repeatability](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/quality/gauge_repeatability/): Name | Description ---- | ----------- `GaugeRepeatabilityEvents` | Quality: Gauge Repeatability & Reproducibility (Gauge R&R) - [ts_shape.events.quality.measurement_uncertainty](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/quality/measurement_uncertainty/): Name | Description ---- | ----------- `MeasurementUncertaintyEvents` | Quality: GUM-based Measurement Uncertainty Estimation - [ts_shape.events.quality.multi_sensor_validation](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/quality/multi_sensor_validation/): Name | Description ---- | ----------- `MultiSensorValidationEvents` | Quality: Multi-Sensor Cross-Validation - [ts_shape.events.quality.multivariate_spc](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/quality/multivariate_spc/): Multivariate SPC: Hotelling T² across correlated process variables. - [ts_shape.events.quality.outlier_detection](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/quality/outlier_detection/): Name | Description ---- | ----------- `OutlierDetectionEvents` | Processes time series data to detect outliers based on specified statistical methods. - [ts_shape.events.quality.sampling_resolution](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/quality/sampling_resolution/): Name | Description ---- | ----------- `SamplingResolutionEvents` | Quality: Sampling & Resolution Analysis - [ts_shape.events.quality.sensor_drift](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/quality/sensor_drift/): Sensor drift: slow calibration loss of a measurement against a reference. - [ts_shape.events.quality.signal_quality](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/quality/signal_quality/): Signal quality: is the data itself trustworthy? - [ts_shape.events.quality.statistical_process_control](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/quality/statistical_process_control/): Name | Description ---- | ----------- `StatisticalProcessControlEvents` | Inherits from Base and applies SPC rules (Western Electric Rules) to a Da... - [ts_shape.events.quality.tolerance_deviation](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/quality/tolerance_deviation/): Name | Description ---- | ----------- `ToleranceDeviationEvents` | Inherits from Base and processes DataFrame data for specific events, comparing t... - [ts_shape.events.quality.value_distribution](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/quality/value_distribution/): Value distribution: shape and stability of a signal's values. - [ts_shape.events.supplychain.demand_pattern](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/supplychain/demand_pattern/): Demand pattern events for supply chain timeseries. - [ts_shape.events.supplychain.inventory_monitoring](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/supplychain/inventory_monitoring/): Inventory monitoring events for supply chain timeseries. - [ts_shape.events.supplychain.lead_time_analysis](https://ts-shape.github.io/ts-shape/reference/ts_shape/events/supplychain/lead_time_analysis/): Lead time analysis events for supply chain timeseries. - [ts_shape.features.cross_signal](https://ts-shape.github.io/ts-shape/reference/ts_shape/features/cross_signal/): Name | Description ---- | ----------- `CrossSignalAnalytics` | Cross-Signal Analytics for multi-signal timeseries. - [ts_shape.features.cycles.cycle_processor](https://ts-shape.github.io/ts-shape/reference/ts_shape/features/cycles/cycle_processor/): Assign sample data to cycles and compute per-cycle results. - [ts_shape.features.cycles.cycles_extractor](https://ts-shape.github.io/ts-shape/reference/ts_shape/features/cycles/cycles_extractor/): Cut a signal into production cycles. - [ts_shape.features.export](https://ts-shape.github.io/ts-shape/reference/ts_shape/features/export/): Feature matrix export utilities for ts-shape. - [ts_shape.features.pattern_recognition](https://ts-shape.github.io/ts-shape/reference/ts_shape/features/pattern_recognition/): Name | Description ---- | ----------- `PatternRecognition` | Pattern Recognition for univariate timeseries. - [ts_shape.features.segment_analysis.profile_comparison](https://ts-shape.github.io/ts-shape/reference/ts_shape/features/segment_analysis/profile_comparison/): Name | Description ---- | ----------- `ProfileComparison` | Distance, clustering, similarity, and anomaly detection on metric profiles. - [ts_shape.features.segment_analysis.segment_extractor](https://ts-shape.github.io/ts-shape/reference/ts_shape/features/segment_analysis/segment_extractor/): Name | Description ---- | ----------- `SegmentExtractor` | Extract time ranges from a categorical signal that changes over time. - [ts_shape.features.segment_analysis.segment_processor](https://ts-shape.github.io/ts-shape/reference/ts_shape/features/segment_analysis/segment_processor/): Name | Description ---- | ----------- `SegmentProcessor` | Apply extracted time ranges to process data and compute metric profiles. - [ts_shape.features.segment_analysis.time_windowed_features](https://ts-shape.github.io/ts-shape/reference/ts_shape/features/segment_analysis/time_windowed_features/): Name | Description ---- | ----------- `TimeWindowedFeatureTable` | Build ML-ready feature tables from segmented timeseries data. - [ts_shape.features.stats.boolean_stats](https://ts-shape.github.io/ts-shape/reference/ts_shape/features/stats/boolean_stats/): Name | Description ---- | ----------- `BooleanStatistics` | Provides class methods to calculate statistics on a boolean column in a pandas DataFrame. - [ts_shape.features.stats.feature_table](https://ts-shape.github.io/ts-shape/reference/ts_shape/features/stats/feature_table/): Name | Description ---- | ----------- `DescriptiveFeatures` | Compute descriptive statistics for a DataFrame, grouped by UUID. - [ts_shape.features.stats.numeric_stats](https://ts-shape.github.io/ts-shape/reference/ts_shape/features/stats/numeric_stats/): Name | Description ---- | ----------- `NumericStatistics` | Provides class methods to calculate statistics on numeric columns in a pandas DataFrame. - [ts_shape.features.stats.string_stats](https://ts-shape.github.io/ts-shape/reference/ts_shape/features/stats/string_stats/): Name | Description ---- | ----------- `StringStatistics` | Provides class methods to calculate statistics on string columns in a pandas DataFrame. - [ts_shape.features.stats.timestamp_stats](https://ts-shape.github.io/ts-shape/reference/ts_shape/features/stats/timestamp_stats/): Name | Description ---- | ----------- `TimestampStatistics` | Provides class methods to calculate statistics on timestamp columns in a pandas DataF... - [ts_shape.features.time_stats.time_stats_numeric](https://ts-shape.github.io/ts-shape/reference/ts_shape/features/time_stats/time_stats_numeric/): Name | Description ---- | ----------- `TimeGroupedStatistics` | A class for calculating time-grouped statistics on numeric data, with class methods... - [ts_shape.loader.combine.integrator](https://ts-shape.github.io/ts-shape/reference/ts_shape/loader/combine/integrator/): Name | Description ---- | ----------- `DataIntegratorHybrid` | A flexible utility class to integrate data from various sources, including: - [ts_shape.loader.context.context_enricher](https://ts-shape.github.io/ts-shape/reference/ts_shape/loader/context/context_enricher/): Name | Description ---- | ----------- `ContextEnricher` | Enrich timeseries DataFrames with contextual metadata. - [ts_shape.loader.metadata.metadata_api_loader](https://ts-shape.github.io/ts-shape/reference/ts_shape/loader/metadata/metadata_api_loader/): Name | Description ---- | ----------- `DatapointAPI` | Loads datatron, device, and datapoint metadata from the Datadash REST API. - [ts_shape.loader.metadata.metadata_db_loader](https://ts-shape.github.io/ts-shape/reference/ts_shape/loader/metadata/metadata_db_loader/): Name | Description ---- | ----------- `DatapointDB` | Load datapoint metadata per device from the PostgreSQL config repository. - [ts_shape.loader.metadata.metadata_json_loader](https://ts-shape.github.io/ts-shape/reference/ts_shape/loader/metadata/metadata_json_loader/): Name | Description ---- | ----------- `MetadataJsonLoader` | Load metadata JSON of shape: - [ts_shape.loader.metadata.workbook](https://ts-shape.github.io/ts-shape/reference/ts_shape/loader/metadata/workbook/): Read a plant's datapoint workbook (.xlsx) without extra dependencies. - [ts_shape.loader.timeseries.azure_blob_energy_loader](https://ts-shape.github.io/ts-shape/reference/ts_shape/loader/timeseries/azure_blob_energy_loader/): Name | Description ---- | ----------- `AzureBlobEnergyLoader` | Load CSV energy timeseries and series metadata from Azure Blob Storage. - [ts_shape.loader.timeseries.azure_blob_loader](https://ts-shape.github.io/ts-shape/reference/ts_shape/loader/timeseries/azure_blob_loader/): Name | Description ---- | ----------- `AzureBlobParquetLoader` | Load parquet files from an Azure Blob Storage container filtered by a list of UUID... - [ts_shape.loader.timeseries.databricks_spark_parquet_loader](https://ts-shape.github.io/ts-shape/reference/ts_shape/loader/timeseries/databricks_spark_parquet_loader/): Spark-native Databricks loader for the canonical hourly parquet layout. - [ts_shape.loader.timeseries.databricks_unity_energy_loader](https://ts-shape.github.io/ts-shape/reference/ts_shape/loader/timeseries/databricks_unity_energy_loader/): Name | Description ---- | ----------- `DatabricksUnityEnergyLoader` | Load CSV energy timeseries and series metadata governed by **Unity Catalog**. - [ts_shape.loader.timeseries.databricks_unity_parquet_loader](https://ts-shape.github.io/ts-shape/reference/ts_shape/loader/timeseries/databricks_unity_parquet_loader/): Name | Description ---- | ----------- `DatabricksUnityParquetLoader` | Load canonical parquet files governed by **Databricks Unity Catalog**. - [ts_shape.loader.timeseries.energy_api_loader](https://ts-shape.github.io/ts-shape/reference/ts_shape/loader/timeseries/energy_api_loader/): Energy API Loader - [ts_shape.loader.timeseries.parquet_loader](https://ts-shape.github.io/ts-shape/reference/ts_shape/loader/timeseries/parquet_loader/): Name | Description ---- | ----------- `ParquetLoader` | This class provides class methods to load parquet files from a specified directory structure. - [ts_shape.loader.timeseries.s3proxy_parquet_loader](https://ts-shape.github.io/ts-shape/reference/ts_shape/loader/timeseries/s3proxy_parquet_loader/): Name | Description ---- | ----------- `S3ProxyDataAccess` | A class to access timeseries data via an S3 proxy. This class retrieves - [ts_shape.loader.timeseries.timescale_loader](https://ts-shape.github.io/ts-shape/reference/ts_shape/loader/timeseries/timescale_loader/): Name | Description ---- | ----------- `TimescaleDBDataAccess` | Load timeseries data for given UUIDs and a time range from TimescaleDB. - [ts_shape.pipeline](https://ts-shape.github.io/ts-shape/reference/ts_shape/pipeline/): Declarative pipeline orchestrator for ts-shape. - [ts_shape.signals.identify](https://ts-shape.github.io/ts-shape/reference/ts_shape/signals/identify/): Find the signals that identify objects, and say what kind of object. - [ts_shape.signals.infer](https://ts-shape.github.io/ts-shape/reference/ts_shape/signals/infer/): Infer :class:`~ts_shape.signals.spec.SignalSpec` from data. - [ts_shape.signals.primitives](https://ts-shape.github.io/ts-shape/reference/ts_shape/signals/primitives/): Spec-driven primitives: the correct way to do the five recurring operations. - [ts_shape.signals.report](https://ts-shape.github.io/ts-shape/reference/ts_shape/signals/report/): One-call data-quality and semantics report for long-format time series. - [ts_shape.signals.spec](https://ts-shape.github.io/ts-shape/reference/ts_shape/signals/spec/): Signal semantics: what a uuid's values *mean*. - [ts_shape.stream](https://ts-shape.github.io/ts-shape/reference/ts_shape/stream/): Chunked processing: run a detector slice by slice on data larger than memory. - [ts_shape.transform.calculator.numeric_calc](https://ts-shape.github.io/ts-shape/reference/ts_shape/transform/calculator/numeric_calc/): Name | Description ---- | ----------- `IntegerCalc` | Provides class methods for performing calculations on integer columns in a pandas DataFrame. - [ts_shape.transform.calculator.power_integration](https://ts-shape.github.io/ts-shape/reference/ts_shape/transform/calculator/power_integration/): Power (kW) to energy (kWh) integration for ts-shape. - [ts_shape.transform.calculator.scaling](https://ts-shape.github.io/ts-shape/reference/ts_shape/transform/calculator/scaling/): Apply a datapoint workbook's linear scaling (opt-in). - [ts_shape.transform.calculator.unit_conversion](https://ts-shape.github.io/ts-shape/reference/ts_shape/transform/calculator/unit_conversion/): Engineering unit conversion for ts-shape, backed by the ``pint`` library. - [ts_shape.transform.filter.boolean_filter](https://ts-shape.github.io/ts-shape/reference/ts_shape/transform/filter/boolean_filter/): Name | Description ---- | ----------- `IsDeltaFilter` | Provides class methods for filtering is_delta columns in a pandas DataFrame.... - [ts_shape.transform.filter.custom_filter](https://ts-shape.github.io/ts-shape/reference/ts_shape/transform/filter/custom_filter/): Name | Description ---- | ----------- `CustomFilter` | - [ts_shape.transform.filter.datetime_filter](https://ts-shape.github.io/ts-shape/reference/ts_shape/transform/filter/datetime_filter/): Name | Description ---- | ----------- `DateTimeFilter` | Provides class methods for filtering time columns in a pandas DataFrame. - [ts_shape.transform.filter.numeric_filter](https://ts-shape.github.io/ts-shape/reference/ts_shape/transform/filter/numeric_filter/): Name | Description ---- | ----------- `IntegerFilter` | Provides class methods for filtering integer columns in a pandas DataFrame. `DoubleFilter` ... - [ts_shape.transform.filter.string_filter](https://ts-shape.github.io/ts-shape/reference/ts_shape/transform/filter/string_filter/): Name | Description ---- | ----------- `StringFilter` | A class for filtering operations on string columns within a pandas DataFrame. - [ts_shape.transform.functions.lambda_func](https://ts-shape.github.io/ts-shape/reference/ts_shape/transform/functions/lambda_func/): Name | Description ---- | ----------- `LambdaProcessor` | Provides class methods for applying lambda or callable functions to columns in a pandas D... - [ts_shape.transform.harmonization](https://ts-shape.github.io/ts-shape/reference/ts_shape/transform/harmonization/): Name | Description ---- | ----------- `DataHarmonizer` | Data Harmonization for multi-signal timeseries. - [ts_shape.transform.time_functions.timestamp_converter](https://ts-shape.github.io/ts-shape/reference/ts_shape/transform/time_functions/timestamp_converter/): Name | Description ---- | ----------- `TimestampConverter` | A class dedicated to converting high-precision timestamp data (e.g., in seconds, milli... - [ts_shape.transform.time_functions.timezone_shift](https://ts-shape.github.io/ts-shape/reference/ts_shape/transform/time_functions/timezone_shift/): Name | Description ---- | ----------- `TimezoneShift` | A class for shifting timestamps in a DataFrame to a different timezone, with methods to han... - [ts_shape.utils.base](https://ts-shape.github.io/ts-shape/reference/ts_shape/utils/base/): Base class and architecture guidelines for ts-shape. - [ts_shape.utils.coerce](https://ts-shape.github.io/ts-shape/reference/ts_shape/utils/coerce/): Numeric coercion that reports what it could not convert. - [ts_shape.utils.counters](https://ts-shape.github.io/ts-shape/reference/ts_shape/utils/counters/): Reset-aware helpers for monotonic production counters. - [ts_shape.utils.frames](https://ts-shape.github.io/ts-shape/reference/ts_shape/utils/frames/): Input checks shared by every public function outside the detectors. - [ts_shape.utils.id_codes](https://ts-shape.github.io/ts-shape/reference/ts_shape/utils/id_codes/): Recognise misread object-id values (PLC no-reads, placeholders, fillers). - [ts_shape.utils.intervals](https://ts-shape.github.io/ts-shape/reference/ts_shape/utils/intervals/): Helpers for turning a state signal into intervals. - [ts_shape.utils.normalize](https://ts-shape.github.io/ts-shape/reference/ts_shape/utils/normalize/): Bring a long-format signal frame to the dtypes the detectors compute with. - [ts_shape.utils.personal](https://ts-shape.github.io/ts-shape/reference/ts_shape/utils/personal/): Signals that carry personal data (operator log-ins, names, badges). - [ts_shape.utils.runs](https://ts-shape.github.io/ts-shape/reference/ts_shape/utils/runs/): Vectorized run-length helpers. - [ts_shape.utils.shifts](https://ts-shape.github.io/ts-shape/reference/ts_shape/utils/shifts/): Shift assignment and production-day helpers. - [ts_shape.utils.signal_checks](https://ts-shape.github.io/ts-shape/reference/ts_shape/utils/signal_checks/): Consistent input checks for detector calls (wired in by ``Base``). - [ts_shape.utils.time_accounting](https://ts-shape.github.io/ts-shape/reference/ts_shape/utils/time_accounting/): Time and quantity accounting per period (shift, hour, day, ...). - [ts_shape.utils.time_weighted](https://ts-shape.github.io/ts-shape/reference/ts_shape/utils/time_weighted/): Time-weighted resampling for irregular and change-encoded signals. - [ts_shape.utils.validate](https://ts-shape.github.io/ts-shape/reference/ts_shape/utils/validate/): Checks for configuration arguments (dicts, limits, names, choices). - [Contributing](https://ts-shape.github.io/ts-shape/contributing/): Contributions are accepted under the project's MIT license (`LICENSE.txt`). Setup, tests, linting and the release process are described in Developm... - [Deprecated names](https://ts-shape.github.io/ts-shape/deprecations/): Every deprecated name in ts-shape and what to use instead, generated from the code. - [Example scripts](https://ts-shape.github.io/ts-shape/examples/): The `examples/` folder of the repository has one script per area of the library. Each script generates its own synthetic data and runs without inpu... - [Migration and deprecations](https://ts-shape.github.io/ts-shape/migration/): Renames, deprecated aliases and behavior changes. Deprecated names still work and emit a `DeprecationWarning`; they are removed only in a future ma... - [Roadmap](https://ts-shape.github.io/ts-shape/roadmap/): The goal is a library whose results are correct by default and easy to understand. Two rounds of gap screening fixed about 90 correctness bugs, and...