ts-shape 0.0.76__tar.gz → 0.0.77__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ts_shape-0.0.76 → ts_shape-0.0.77}/CHANGES.txt +16 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/PKG-INFO +1 -1
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/guides/loading.md +35 -8
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/guides/ml-features.md +4 -1
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/migration.md +85 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/production/performance_loss.py +81 -40
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/features/cross_signal.py +24 -6
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/features/cycles/cycles_extractor.py +40 -33
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/features/segment_analysis/time_windowed_features.py +59 -8
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/features/stats/numeric_stats.py +35 -7
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/loader/_utils.py +111 -14
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/loader/metadata/metadata_api_loader.py +30 -16
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/loader/metadata/metadata_json_loader.py +26 -10
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/loader/timeseries/azure_blob_energy_loader.py +67 -22
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/loader/timeseries/azure_blob_loader.py +24 -8
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/loader/timeseries/databricks_spark_parquet_loader.py +2 -2
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/loader/timeseries/databricks_unity_energy_loader.py +29 -17
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/loader/timeseries/databricks_unity_parquet_loader.py +17 -7
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/loader/timeseries/energy_api_loader.py +1 -1
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/loader/timeseries/parquet_loader.py +21 -3
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/loader/timeseries/s3proxy_parquet_loader.py +25 -10
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/loader/timeseries/timescale_loader.py +3 -3
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/transform/calculator/power_integration.py +75 -35
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/transform/filter/numeric_filter.py +2 -1
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/transform/filter/string_filter.py +3 -1
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/transform/harmonization.py +60 -5
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/transform/time_functions/timezone_shift.py +14 -1
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape.egg-info/PKG-INFO +1 -1
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape.egg-info/SOURCES.txt +3 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape.egg-info/scm_file_list.json +3 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/invariants/test_dst_windows.py +15 -9
- ts_shape-0.0.77/tests/reference/test_round17_features_filters.py +317 -0
- ts_shape-0.0.77/tests/reference/test_round17_loaders.py +699 -0
- ts_shape-0.0.77/tests/reference/test_round17_production_power.py +268 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_loader_paths_sql_s3.py +4 -2
- {ts_shape-0.0.76 → ts_shape-0.0.77}/.github/scripts/next_version.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/.github/workflows/ci.yml +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/.github/workflows/release.yml +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/.gitignore +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/.pre-commit-config.yaml +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/LICENSE.txt +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/README.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/benchmarks/run.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/assets/favicon-16x16.png +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/assets/favicon-32x32.png +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/assets/favicon-48x48.png +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/assets/ts-shape.png +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/changelog.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/concept.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/contributing.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/examples.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/guides/chunked-processing.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/guides/context.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/guides/energy.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/guides/engineering.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/guides/eventlog/adapters.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/guides/eventlog/index.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/guides/eventlog/objects.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/guides/eventlog/taxonomy.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/guides/feature-extraction.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/guides/lambda-rules.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/guides/maintenance.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/guides/pipeline-builder.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/guides/production.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/guides/quality.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/guides/signals.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/guides/transforms.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/index.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/insiders/development.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/license.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/correlation/anomaly-correlation.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/correlation/root-cause-correlation.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/correlation/signal-correlation.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/development/critical-parameter-ranking.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/development/design-of-experiments.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/development/design-space.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/development/golden-batch.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/development/recipe-phase-adherence.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/energy/carbon-intensity.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/energy/consumption-analysis.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/energy/efficiency-tracking.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/energy/energy-performance-indicator.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/energy/idle-energy-detection.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/energy/power-integration.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/engineering/control-loop-health.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/engineering/disturbance-recovery.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/engineering/material-balance.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/engineering/operating-range.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/engineering/process-stability.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/engineering/process-windows.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/engineering/rate-of-change.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/engineering/setpoint-events.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/engineering/signal-comparison.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/engineering/startup-detection.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/engineering/steady-state.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/engineering/threshold-monitoring.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/engineering/time-to-threshold.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/engineering/warmup-analysis.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/index.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/maintenance/asset-health-index.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/maintenance/degradation-detection.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/maintenance/failure-prediction.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/maintenance/reliability.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/maintenance/vibration-analysis.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/production/alarm-management.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/production/batch-tracking.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/production/bottleneck-detection.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/production/changeover.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/production/continuous-process-alignment.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/production/cycle-time.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/production/downtime.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/production/duty-cycle.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/production/flow-constraints.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/production/flow-metrics.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/production/line-balancing.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/production/line-throughput.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/production/long-downtime.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/production/machine-state.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/production/micro-stops.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/production/multi-process-traceability.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/production/oee-calculator.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/production/operating-state.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/production/operator-performance.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/production/order-traceability.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/production/part-tracking.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/production/performance-loss.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/production/period-summary.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/production/quality-tracking.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/production/rework-tracking.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/production/routing-traceability.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/production/runtime-accounting.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/production/schedule-adherence.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/production/scrap-tracking.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/production/setup-time.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/production/shift-handover.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/production/shift-reporting.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/production/target-tracking.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/quality/anomaly-classification.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/quality/calibration-validation.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/quality/capability-trending.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/quality/change-point.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/quality/data-gap-analysis.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/quality/environmental-compensation.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/quality/gauge-rr.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/quality/measurement-uncertainty.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/quality/multi-sensor-validation.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/quality/multivariate-spc.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/quality/outlier-detection.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/quality/sampling-resolution.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/quality/sensor-drift.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/quality/signal-quality.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/quality/spc.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/quality/tolerance-deviation.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/quality/value-distribution.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/supplychain/demand-patterns.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/supplychain/inventory-monitoring.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/modules/supplychain/lead-time-analysis.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/naming.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/reference/index.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/roadmap.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/user_guide/installation.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/docs/user_guide/quick_start.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/examples/README.md +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/examples/context_enricher_demo.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/examples/correlation_events_demo.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/examples/cycle_extractor_enhancements_demo.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/examples/energy_events_demo.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/examples/eventlog_demo.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/examples/features_statistics_demo.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/examples/lambda_rules_demo.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/examples/lambda_rules_demo.yaml +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/examples/line_flow_analytics_demo.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/examples/loader_usage_demo.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/examples/maintenance_events_demo.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/examples/object_detection_demo.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/examples/pipeline_demo.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/examples/production_events_demo.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/examples/production_tracking_demo.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/examples/quality_events_demo.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/examples/setpoint_events_advanced_usage.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/examples/supplychain_events_demo.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/examples/transform_operations_demo.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/examples/unit_runtime_demo.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/mkdocs.yml +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/pyproject.toml +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/renovate.json +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/scripts/gen_ref_pages.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/scripts/scan_deprecations.sh +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/setup.cfg +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/__init__.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/catalog.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/context/__init__.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/context/value_mapping.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/datasets.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/errors.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/eventlog/__init__.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/eventlog/adapters.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/eventlog/align.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/eventlog/archetypes.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/eventlog/concat.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/eventlog/flat.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/eventlog/introspect.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/eventlog/lambda_rules/__init__.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/eventlog/lambda_rules/backtest.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/eventlog/lambda_rules/detector.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/eventlog/lambda_rules/evaluator.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/eventlog/lambda_rules/expression.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/eventlog/lambda_rules/loader.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/eventlog/lambda_rules/spec.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/eventlog/model.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/eventlog/normalizer.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/eventlog/objects.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/eventlog/ocel.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/eventlog/schema.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/eventlog/taxonomy.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/__init__.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/_compat.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/_output.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/_windows.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/correlation/__init__.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/correlation/anomaly_correlation.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/correlation/root_cause_correlation.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/correlation/signal_correlation.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/development/__init__.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/development/critical_parameter_ranking.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/development/design_of_experiments.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/development/design_space.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/development/golden_batch.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/development/recipe_phase_adherence.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/energy/__init__.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/energy/carbon_intensity.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/energy/consumption_analysis.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/energy/efficiency_tracking.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/energy/energy_performance_indicator.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/energy/idle_energy_detection.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/engineering/__init__.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/engineering/control_loop_health.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/engineering/disturbance_recovery.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/engineering/material_balance.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/engineering/operating_range.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/engineering/process_stability_index.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/engineering/process_window.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/engineering/rate_of_change.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/engineering/setpoint_events.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/engineering/signal_comparison.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/engineering/startup_events.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/engineering/steady_state_detection.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/engineering/threshold_monitoring.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/engineering/time_to_threshold.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/engineering/warmup_analysis.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/maintenance/__init__.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/maintenance/_rolling.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/maintenance/asset_health_index.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/maintenance/degradation_detection.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/maintenance/failure_prediction.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/maintenance/reliability.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/maintenance/vibration_analysis.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/production/__init__.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/production/_counter_groups.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/production/_flow.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/production/alarm_management.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/production/batch_tracking.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/production/bottleneck_detection.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/production/changeover.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/production/continuous_process_alignment.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/production/cycle_time_tracking.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/production/downtime_tracking.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/production/duty_cycle.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/production/flow_constraints.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/production/flow_metrics.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/production/line_balancing.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/production/line_throughput.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/production/long_downtime_events.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/production/machine_state.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/production/micro_stop_detection.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/production/multi_process_traceability.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/production/oee_calculator.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/production/operating_state.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/production/operator_performance.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/production/order_traceability.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/production/part_tracking.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/production/period_summary.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/production/quality_tracking.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/production/rework_tracking.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/production/routing_traceability.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/production/runtime_accounting.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/production/schedule_adherence.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/production/scrap_tracking.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/production/setup_time_tracking.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/production/shift_handover.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/production/shift_reporting.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/production/target_tracking.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/quality/__init__.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/quality/anomaly_classification.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/quality/calibration_validation.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/quality/capability_trending.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/quality/change_point.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/quality/data_gap_analysis.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/quality/environmental_compensation.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/quality/gauge_repeatability.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/quality/measurement_uncertainty.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/quality/multi_sensor_validation.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/quality/multivariate_spc.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/quality/outlier_detection.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/quality/sampling_resolution.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/quality/sensor_drift.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/quality/signal_quality.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/quality/statistical_process_control.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/quality/tolerance_deviation.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/quality/value_distribution.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/supplychain/__init__.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/supplychain/demand_pattern.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/supplychain/inventory_monitoring.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/events/supplychain/lead_time_analysis.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/features/__init__.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/features/cycles/__init__.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/features/cycles/cycle_processor.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/features/export.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/features/pattern_recognition.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/features/segment_analysis/__init__.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/features/segment_analysis/_grouped_stats.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/features/segment_analysis/profile_comparison.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/features/segment_analysis/segment_extractor.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/features/segment_analysis/segment_processor.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/features/stats/__init__.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/features/stats/_values.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/features/stats/boolean_stats.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/features/stats/feature_table.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/features/stats/string_stats.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/features/stats/timestamp_stats.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/features/time_stats/__init__.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/features/time_stats/time_stats_numeric.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/loader/__init__.py +4 -4
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/loader/combine/__init__.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/loader/combine/integrator.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/loader/context/__init__.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/loader/context/context_enricher.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/loader/metadata/__init__.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/loader/metadata/metadata_db_loader.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/loader/timeseries/__init__.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/pipeline.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/profiling.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/py.typed +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/signals/__init__.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/signals/infer.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/signals/primitives.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/signals/spec.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/stream.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/transform/__init__.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/transform/calculator/__init__.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/transform/calculator/numeric_calc.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/transform/calculator/unit_conversion.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/transform/filter/__init__.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/transform/filter/_sequence.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/transform/filter/boolean_filter.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/transform/filter/custom_filter.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/transform/filter/datetime_filter.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/transform/functions/__init__.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/transform/functions/lambda_func.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/transform/time_functions/__init__.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/transform/time_functions/timestamp_converter.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/utils/__init__.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/utils/base.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/utils/coerce.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/utils/counters.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/utils/deprecation.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/utils/frames.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/utils/intervals.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/utils/normalize.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/utils/runs.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/utils/shifts.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/utils/signal_checks.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/utils/time_accounting.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape/utils/time_weighted.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape.egg-info/dependency_links.txt +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape.egg-info/requires.txt +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/src/ts_shape.egg-info/top_level.txt +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/conftest.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/data/setpoint_kpis_reference.csv +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/docs/__init__.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/docs/test_args_documented.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/docs/test_doc_names.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/docs/test_docstring_examples.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/docs/test_docstring_lists.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/docs/test_md_examples.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/docs/test_method_tables.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/eventlog/__init__.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/eventlog/conftest.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/eventlog/test_adapter_coverage.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/eventlog/test_adapters.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/eventlog/test_align.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/eventlog/test_end_to_end.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/eventlog/test_event_ids_frozen.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/eventlog/test_eventlog_robustness.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/eventlog/test_flat_and_ocel.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/eventlog/test_lambda_rules.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/eventlog/test_model.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/eventlog/test_objects.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/eventlog/test_polish.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/eventlog/test_relate.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/eventlog/test_schema.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/invariants/__init__.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/invariants/baseline.json +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/invariants/harness.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/invariants/test_contract_eventlog_misc.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/invariants/test_contract_summary.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/invariants/test_contract_transform_features.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/invariants/test_invariants.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/reference/__init__.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/reference/test_capability_reference.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/reference/test_energy_values.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/reference/test_kpi_references_misc.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/reference/test_kpi_references_quality.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/reference/test_kpi_time_accounting.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/reference/test_round13_engineering.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/reference/test_round13_quality.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/reference/test_round14_a.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/reference/test_round14_b.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/reference/test_round16_dst.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/reference/test_round17_eventlog.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/reference/test_round17_pipeline_signals.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/reference/test_spc_rules_reference.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/reference/test_uncertainty_reference.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/reference/test_untested_methods.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/reference/test_weibull_reference.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_anomaly_classification.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_apply_ranges_overlap.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_asset_health_index.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_azure_blob_energy_loader.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_azure_blob_loader.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_base.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_base_fast_paths.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_batch_tracking_resets.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_boolean_filter.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_bottleneck_detection.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_branch_coverage_events.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_calibration_validation.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_canonical_output_columns.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_capability_trending.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_catalog.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_change_point.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_changeover_initial.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_coerce.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_consistent_outputs.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_context_enricher.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_context_robustness.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_continuous_alignment_resets.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_continuous_process_alignment.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_correlation_events.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_correlation_time_grid.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_counter_group_boundaries.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_counter_windows.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_counters.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_cross_signal.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_custom_filter.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_cusum_duplicates.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_cycles.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_cycles_extractor_matching.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_data_gap_analysis.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_databricks_spark_parquet_loader.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_databricks_unity_energy_loader.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_databricks_unity_parquet_loader.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_datasets.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_degenerate_denominators_other_packs.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_degenerate_inputs.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_deprecated_kwargs_all.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_deprecation.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_descriptive_features_windowed.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_detector_registry_conformance.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_development_events.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_downtime_quality.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_downtime_reason_fix.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_duplicate_events.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_duty_cycle.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_edge_cases.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_energy_api_loader.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_energy_efficiency_comparison_counter.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_energy_events.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_energy_new_classes.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_engineering_control_loop_health.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_engineering_disturbance_recovery.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_engineering_material_balance.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_engineering_operating_range.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_engineering_process_stability.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_engineering_process_window.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_engineering_setpoint.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_engineering_setpoint_alignment.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_engineering_signal_comparison.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_engineering_startup.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_engineering_steady_state.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_engineering_warmup.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_environmental_compensation.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_examples.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_failure_prediction_rul.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_feature_table.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_filters_group_by_uuid.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_flow_constraints_interval_end.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_flow_metrics.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_frames_helpers.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_frequency_defaults.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_gauge_repeatability.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_import_time.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_interval_end_change_encoded.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_interval_end_other_packs.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_intervals.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_lambda_func.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_lead_time_matching.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_lead_time_pairing.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_lean_install.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_legacy_cleanup.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_legacy_defects.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_line_balancing.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_line_balancing_alarm_boundary.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_line_throughput_guards.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_line_throughput_resets.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_lined_out_round2.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_loader_integrator.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_loader_paths_azure.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_loader_paths_metadata.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_loader_repr.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_loader_robustness.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_loader_time_range_names.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_loader_utils.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_long_downtime_events.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_maintenance_events.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_max_gap_caps.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_measurement_uncertainty.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_metadata_api_loader.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_metadata_db_loader.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_metadata_json_loader.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_micro_stop_detection.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_micro_stop_vectorized.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_misc_robustness.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_multi_process_traceability.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_multi_sensor_validation.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_multivariate_spc.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_named_public_functions.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_naming.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_normalize.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_numeric_calc.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_numeric_filter.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_oee_gaps.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_oee_resets.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_operating_state.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_operator_performance.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_operator_performance_resets.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_outlier_detection.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_outlier_detection_robustness.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_output_schema.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_overnight_shift.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_overnight_shift_extended.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_pack_exports_idioms.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_parquet_loader.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_pattern_recognition.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_pattern_recognition_fast_paths.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_perf_equivalence_events.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_performance_loss.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_period_summary.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_period_summary_resets.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_pipeline.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_power_integration.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_power_integration_dst.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_production_events.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_production_oee_alarm_batch.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_production_tracking.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_profile.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_profile_comparison.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_profile_constant_runs.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_properties_core.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_public_api.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_quality_tracking_resets.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_rate_of_change.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_release_version.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_reliability.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_renames.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_rework_tracking.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_rework_tracking_resets.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_robustness_other_packs.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_rolling_moments.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_root_cause_correlation.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_round13_renames_behavior.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_round13_robustness.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_runs.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_runtime_accounting.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_s3proxy_parquet_loader.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_sampling_resolution.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_scale.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_scale_other_packs.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_scale_production.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_schedule_adherence.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_scrap_tracking.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_scrap_tracking_resets.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_segment_extractor.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_segment_processor.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_sensor_drift.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_setpoint_shared_gather.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_setpoint_startup_coverage.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_setup_time_tracking.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_severity_level.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_shift_handover.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_shift_handover_resets.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_shift_reporting_resets.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_shifts.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_signal_checks.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_signal_checks_columns.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_signal_quality.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_signals.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_signals_properties.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_signals_robustness.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_spc.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_spc_rules_coverage.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_specs_driven_detectors.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_stats_boolean.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_stats_numeric.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_stats_string.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_stream.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_stream_equivalence.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_string_and_datetime_filter.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_supplychain_events.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_target_tracking.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_target_tracking_resets.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_threshold_monitoring.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_time_accounting.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_time_functions.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_time_stats_numeric.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_time_to_threshold.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_time_weighted.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_time_weighted_and_gaps.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_time_windowed_features.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_timescale_loader.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_timestamp_stats.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_timezone_safety.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_tolerance_deviation.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_tolerance_deviation_direction.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_traceability.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_traceability_dwell.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_transform_features_renames.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_transform_features_robustness.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_transform_harmonization.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_unit_conversion.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_value_distribution.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_value_mapping.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_verify_cycles.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_verify_cycles_processor.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_verify_objects.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_verify_period_cutters.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_window_bounds.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/test_zero_steps_and_gaps.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/typing/deprecated_usage.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/typing/mypy.ini +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/typing/test_lazy_exports.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/typing/test_mypy.py +0 -0
- {ts_shape-0.0.76 → ts_shape-0.0.77}/tests/typing/user_script.py +0 -0
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
# October 21, 2026 (round 17, part J)
|
|
2
|
+
Second audit: loaders, transforms, features, performance loss.
|
|
3
|
+
fix: performance loss splits cycles at window/shift edges (no run time
|
|
4
|
+
above the window, no false slow periods).
|
|
5
|
+
fix: PowerIntegrator calendar windows (W/MS/ME) use true bounds (no negative
|
|
6
|
+
kWh); total coverage counts missing meters.
|
|
7
|
+
change: DataHarmonizer no longer extends a signal past its first/last
|
|
8
|
+
sample; feat: sampling="first"|"interpolate".
|
|
9
|
+
fix: TimeWindowedFeatureTable right-labeled bounds and empty windows;
|
|
10
|
+
partial cycles at data start; Granger Bonferroni (p_value_adjusted);
|
|
11
|
+
not_match filters keep NA; exact integer sum/range.
|
|
12
|
+
fix: loaders: naive bounds are UTC everywhere; S3 proxy hours and trim;
|
|
13
|
+
no duplicates without {H}; ParquetLoader and energy loaders trim rows;
|
|
14
|
+
float value_double; epoch units inferred; metadata loader robustness.
|
|
15
|
+
See docs/migration.md.
|
|
16
|
+
|
|
1
17
|
# October 21, 2026 (round 17, part I)
|
|
2
18
|
Second audit: event log, pipeline, context, signals.
|
|
3
19
|
fix: event ids include caller-bound objects (logs with objects= get new
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ts_shape
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.77
|
|
4
4
|
Summary: Manufacturing time-series analytics for pandas: events, KPIs, SPC, reliability and energy from long-format signal data
|
|
5
5
|
Author-email: Jakob Gabriel <jakob.gabriel5@googlemail.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -47,12 +47,15 @@ temperature = ParquetLoader.load_files_by_time_range_and_uuids(
|
|
|
47
47
|
)
|
|
48
48
|
```
|
|
49
49
|
|
|
50
|
-
`ParquetLoader`
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
50
|
+
`ParquetLoader` reads whole hour folders, then drops the rows outside
|
|
51
|
+
`[start, end]` (`trim_to_range=True`, the default): the second call reads the
|
|
52
|
+
07:00 and 08:00 folders and returns 07:00 to 08:00. Pass `trim_to_range=False`
|
|
53
|
+
to keep the whole folders (07:00 to 08:59). A start in the middle of an hour
|
|
54
|
+
includes that hour's folder. Folder hours are UTC: tz-aware bounds are
|
|
55
|
+
converted to UTC, naive bounds are taken as UTC (the same for every loader with
|
|
56
|
+
this layout), also when the rows are compared: a naive bound is UTC even
|
|
57
|
+
when `systime` is stored in another timezone. A file matches a uuid only when
|
|
58
|
+
its name is exactly `<uuid>.parquet`.
|
|
56
59
|
|
|
57
60
|
## Azure Blob Storage
|
|
58
61
|
|
|
@@ -83,6 +86,8 @@ df = loader.load_files_by_time_range_and_uuids(
|
|
|
83
86
|
- `load_by_time_range` reads all signals; `stream_by_time_range` yields
|
|
84
87
|
`(blob_name, frame)` pairs one blob at a time.
|
|
85
88
|
- Rows outside `[start, end]` are dropped (`trim_to_range=True`, the default).
|
|
89
|
+
- An `hour_pattern` without `{H}` (for example `"{Y}/{m}/{d}/"`, one folder per
|
|
90
|
+
day) lists each folder once, so its rows are not repeated per hour.
|
|
86
91
|
- A blob that cannot be downloaded or parsed is skipped, and one
|
|
87
92
|
`DataQualityWarning` names every skipped blob. Pass `errors="raise"` to get a
|
|
88
93
|
`LoaderError` instead. The Databricks Unity loader takes the same argument.
|
|
@@ -114,6 +119,12 @@ loader = S3ProxyDataAccess(
|
|
|
114
119
|
df = loader.fetch_data_as_dataframe()
|
|
115
120
|
```
|
|
116
121
|
|
|
122
|
+
The loader reads the UTC hour folders from the one that contains `start` to the
|
|
123
|
+
one that contains `end`, then drops the rows outside `[start, end]`, in
|
|
124
|
+
`fetch_data_as_dataframe` and in the files `fetch_data_as_parquet` writes. When
|
|
125
|
+
no file exists, `fetch_data_as_dataframe` returns an empty frame with the
|
|
126
|
+
standard columns.
|
|
127
|
+
|
|
117
128
|
## Databricks
|
|
118
129
|
|
|
119
130
|
Two loaders read the hourly layout on Databricks. Choose by who does the scan.
|
|
@@ -211,6 +222,12 @@ Both also offer `load_by_series_ids`, `stream_by_time_range` (one CSV file
|
|
|
211
222
|
at a time, as `(series_id, frame)` pairs) and `list_series`; a file that cannot be read is skipped with a
|
|
212
223
|
`DataQualityWarning` (`errors="raise"` raises `LoaderError`).
|
|
213
224
|
|
|
225
|
+
Day folders are UTC days. With a `start`/`end` pair the rows outside the range
|
|
226
|
+
are dropped; an `end` given as a date only (`"2026-06-20"`) keeps that whole
|
|
227
|
+
day. With only one bound (`load_by_series_ids(ids, start=...)`) the range is
|
|
228
|
+
open on the other side and whole day folders are read. `value_double` is
|
|
229
|
+
always `float64`, also when the CSV holds integers.
|
|
230
|
+
|
|
214
231
|
`EnergyAPILoader` fetches JSON records from a REST endpoint and assigns one
|
|
215
232
|
`uuid` to every row:
|
|
216
233
|
|
|
@@ -228,6 +245,10 @@ df = loader.fetch_data_as_dataframe(
|
|
|
228
245
|
)
|
|
229
246
|
```
|
|
230
247
|
|
|
248
|
+
Times may be text (with or without a UTC offset) or epoch numbers. The epoch
|
|
249
|
+
unit follows from the magnitude: seconds below `1e11`, milliseconds below
|
|
250
|
+
`1e14`, microseconds below `1e17`, nanoseconds above.
|
|
251
|
+
|
|
231
252
|
## Signal metadata from Datadash and the config repository
|
|
232
253
|
|
|
233
254
|
`DatapointAPI` (Datadash REST API, bearer token) and `DatapointDB` (the
|
|
@@ -236,7 +257,10 @@ PostgreSQL config repository) collect the datapoints (`uuid`, `label`,
|
|
|
236
257
|
`<device>_data_points.json` per device to `output_path` (default `"data"`),
|
|
237
258
|
and return the uuids per device with `get_all_uuids()`, for example as the
|
|
238
259
|
uuid list of `AzureBlobParquetLoader`. `filter_enabled=True` (the default)
|
|
239
|
-
keeps enabled datapoints only (`DatapointDB` also drops archived ones)
|
|
260
|
+
keeps enabled datapoints only (`DatapointDB` also drops archived ones); a
|
|
261
|
+
datapoint without `enabled` does not count as enabled, and one without
|
|
262
|
+
`config` gets `None`. A device that is not found gets an empty frame and
|
|
263
|
+
an empty uuid list.
|
|
240
264
|
|
|
241
265
|
<!-- no-run -->
|
|
242
266
|
|
|
@@ -251,7 +275,10 @@ uuids = db.get_all_uuids()["Press 1"]
|
|
|
251
275
|
|
|
252
276
|
`MetadataJsonLoader` reads signal metadata (a `uuid`, `label` and `config` per
|
|
253
277
|
signal; `config` keys become columns). `DataIntegratorHybrid.combine_data`
|
|
254
|
-
joins it to the timeseries on `uuid
|
|
278
|
+
joins it to the timeseries on `uuid`. In the index-map form below, every
|
|
279
|
+
column must have the same keys (`strict=True`, the default); with
|
|
280
|
+
`strict=False` a record missing from `label` or `config` gets an empty value.
|
|
281
|
+
Digit keys sort numerically, before text keys.
|
|
255
282
|
|
|
256
283
|
```python
|
|
257
284
|
from ts_shape.loader.metadata.metadata_json_loader import MetadataJsonLoader
|
|
@@ -222,7 +222,10 @@ The temperature leads the pressure by three samples (three minutes).
|
|
|
222
222
|
signal.
|
|
223
223
|
- `lead_lag` uses cross-correlation; `granger_causality` an F-test of
|
|
224
224
|
whether past values of one signal improve the prediction of the other.
|
|
225
|
-
|
|
225
|
+
It tests every lag up to `max_lag` and reports the smallest `p_value`;
|
|
226
|
+
`is_causal` uses the Bonferroni-adjusted `p_value_adjusted`
|
|
227
|
+
(`min(1, p_value * lags tested)`), so testing many lags does not inflate
|
|
228
|
+
false positives. `transfer_entropy` measures directed information flow in bits, also for
|
|
226
229
|
non-linear relations. `synchronization_index` gives phase locking
|
|
227
230
|
(`method="phase"`) or envelope correlation (`"amplitude"`) from 0 to 1.
|
|
228
231
|
- Only rows where both signals have a value are used.
|
|
@@ -6,6 +6,91 @@ future major release. To find every deprecated name your code still uses, run
|
|
|
6
6
|
your tests with `-W error::DeprecationWarning`. The dated record is the
|
|
7
7
|
[Changelog](changelog.md).
|
|
8
8
|
|
|
9
|
+
## October 2026, round 17 (part J): loaders, transforms, features
|
|
10
|
+
|
|
11
|
+
Each change is pinned by a hand-computed test in
|
|
12
|
+
`tests/reference/test_round17_production_power.py`,
|
|
13
|
+
`tests/reference/test_round17_features_filters.py` and
|
|
14
|
+
`tests/reference/test_round17_loaders.py`.
|
|
15
|
+
|
|
16
|
+
### Performance loss and energy
|
|
17
|
+
|
|
18
|
+
- `PerformanceLossEvents.slow_periods`, `performance_trend` and
|
|
19
|
+
`performance_by_shift` book each cycle, from the previous count to this
|
|
20
|
+
one, to the windows or shifts it ran in. Its time is cut at the boundaries
|
|
21
|
+
and its parts are shared in proportion to that time.
|
|
22
|
+
- `run_seconds` never exceeds the window.
|
|
23
|
+
- `actual_parts` can be fractional.
|
|
24
|
+
- The false slow period after a long cycle is gone.
|
|
25
|
+
- `PowerIntegrator.energy_by_window`, `segment_energy` and
|
|
26
|
+
`to_energy_deltas` use true calendar bounds for `'W'`, `'MS'` and `'ME'`.
|
|
27
|
+
`'ME'` and `'W'` used to give negative kWh. `'1D'` is the real local day.
|
|
28
|
+
- `PowerIntegrator.energy_by_window(total=True)` counts a meter with no data
|
|
29
|
+
in a window as coverage 0.
|
|
30
|
+
|
|
31
|
+
### Transforms
|
|
32
|
+
|
|
33
|
+
- `DataHarmonizer.resample_to_uniform` and `merge_multi_signals`:
|
|
34
|
+
- New keyword `sampling="first"|"interpolate"`.
|
|
35
|
+
- `"first"` is the default, as before: the first sample in each bin,
|
|
36
|
+
labeled with the bin start.
|
|
37
|
+
- `"interpolate"` gives the value at each grid timestamp.
|
|
38
|
+
- Interpolation no longer extends a signal before its first or after its
|
|
39
|
+
last sample. Those rows are now NaN.
|
|
40
|
+
- `IntegerFilter.filter_value_integer_not_match` and
|
|
41
|
+
`StringFilter.filter_value_string_not_match` keep missing values for
|
|
42
|
+
nullable dtypes, as documented.
|
|
43
|
+
- `TimezoneShift.revert_to_original_timezone` on a naive column raises a
|
|
44
|
+
`ValueError` that points to `shift_timezone`.
|
|
45
|
+
|
|
46
|
+
### Features
|
|
47
|
+
|
|
48
|
+
- `TimeWindowedFeatureTable`:
|
|
49
|
+
- `compute_long` reports true window bounds for right-labeled windows. The
|
|
50
|
+
`'ME'` window labeled 2024-01-31 is now `[2024-01-01, 2024-02-01)`.
|
|
51
|
+
- `compute` has a row for every window between the first and last sample,
|
|
52
|
+
NaN-filled where no data is available.
|
|
53
|
+
- `CycleExtractor`: a cycle already running at the first non-missing sample
|
|
54
|
+
has `is_complete=False`.
|
|
55
|
+
- `CrossSignalAnalytics.granger_causality`:
|
|
56
|
+
- New `p_value_adjusted`, the Bonferroni-adjusted minimum p-value.
|
|
57
|
+
- `is_causal` now uses it. On independent noise the false-positive rate
|
|
58
|
+
drops from about 15 % to about 2 %.
|
|
59
|
+
- `p_value` is unchanged.
|
|
60
|
+
- `NumericStatistics.column_sum` and `column_range` on integer columns no
|
|
61
|
+
longer wrap around int64.
|
|
62
|
+
|
|
63
|
+
### Loaders
|
|
64
|
+
|
|
65
|
+
- **Naive bounds:** `trim_to_time_range` and every loader that trims rows
|
|
66
|
+
read naive bounds as UTC, as the folder selection always did. To select
|
|
67
|
+
by local time, pass aware bounds.
|
|
68
|
+
- **`S3ProxyDataAccess`:** reads floored UTC hour folders and drops rows
|
|
69
|
+
outside `[start, end]`. With no files it returns an empty frame.
|
|
70
|
+
- **`ParquetLoader`:** `load_by_time_range` and
|
|
71
|
+
`load_files_by_time_range_and_uuids` drop rows outside `[start, end]`.
|
|
72
|
+
Pass `trim_to_range=False` to get whole hour folders.
|
|
73
|
+
- **Hour patterns without `{H}`:** an `hour_pattern` without `{H}` no longer
|
|
74
|
+
returns each row once per hour. This covers the Azure parquet and flexible
|
|
75
|
+
loaders and the Databricks Unity and Spark loaders.
|
|
76
|
+
- **`AzureBlobEnergyLoader` and `DatabricksUnityEnergyLoader`:**
|
|
77
|
+
- They drop rows outside a `start`/`end` pair; a date-only `end` keeps that
|
|
78
|
+
whole day.
|
|
79
|
+
- Azure `load_by_series_ids` accepts a single open bound.
|
|
80
|
+
- Databricks day folders are UTC days.
|
|
81
|
+
- **`value_double`:** always `float64`, in the energy loaders and in
|
|
82
|
+
`EnergyAPILoader`.
|
|
83
|
+
- **`parse_utc_times`:** infers the epoch unit from magnitude (seconds below
|
|
84
|
+
1e11, milliseconds below 1e14, microseconds below 1e17, else nanoseconds),
|
|
85
|
+
or takes `unit=`.
|
|
86
|
+
- **`TimescaleDBDataAccess.fetch_data_as_parquet`:** no longer writes an
|
|
87
|
+
`hour` column.
|
|
88
|
+
- **`MetadataJsonLoader`:** raises in strict mode when the index maps' keys
|
|
89
|
+
differ. With `strict=False` missing fields are filled. Mixed digit and text
|
|
90
|
+
keys sort with the digits first.
|
|
91
|
+
- **`DatapointAPI`:** accepts datapoints without `enabled` or `config`. An
|
|
92
|
+
unknown device gets an empty frame.
|
|
93
|
+
|
|
9
94
|
## October 2026, round 17 (part I): event log, pipeline, signals
|
|
10
95
|
|
|
11
96
|
Each change is pinned by a hand-computed test in
|
|
@@ -16,12 +16,15 @@ from ts_shape.events._windows import (
|
|
|
16
16
|
add_period_window,
|
|
17
17
|
add_shift_window,
|
|
18
18
|
data_tz,
|
|
19
|
-
window_bounds,
|
|
20
19
|
)
|
|
21
20
|
from ts_shape.utils.base import Base
|
|
22
21
|
from ts_shape.utils.counters import counter_increments
|
|
23
22
|
from ts_shape.utils.deprecation import deprecated_class
|
|
24
|
-
from ts_shape.utils.
|
|
23
|
+
from ts_shape.utils.time_accounting import (
|
|
24
|
+
grouper_periods,
|
|
25
|
+
shift_periods,
|
|
26
|
+
split_intervals,
|
|
27
|
+
)
|
|
25
28
|
|
|
26
29
|
if TYPE_CHECKING:
|
|
27
30
|
from typing_extensions import deprecated
|
|
@@ -68,17 +71,17 @@ _TREND_COLS = [
|
|
|
68
71
|
|
|
69
72
|
|
|
70
73
|
def _loss_row(
|
|
71
|
-
|
|
74
|
+
actual_parts: float, elapsed: float, target_cycle_time: float
|
|
72
75
|
) -> tuple[int | float, float, float, float, float]:
|
|
73
|
-
"""``(parts, avg cycle s, performance %, loss s, run s)`` of a
|
|
76
|
+
"""``(parts, avg cycle s, performance %, loss s, run s)`` of a period.
|
|
74
77
|
|
|
75
78
|
ISO 22400-2: performance = ideal cycle time x produced quantity / run
|
|
76
79
|
time, and the actual (average) cycle time is run time / produced
|
|
77
|
-
quantity. ``
|
|
78
|
-
number of readings) and the run time
|
|
80
|
+
quantity. ``actual_parts`` is the produced quantity (counter increments,
|
|
81
|
+
not the number of readings) and ``elapsed`` the run time in the period.
|
|
79
82
|
"""
|
|
80
|
-
actual_parts = float(
|
|
81
|
-
elapsed = float(
|
|
83
|
+
actual_parts = round(float(actual_parts), 9)
|
|
84
|
+
elapsed = float(elapsed)
|
|
82
85
|
avg_ct = elapsed / actual_parts if actual_parts > 0 else float("nan")
|
|
83
86
|
if elapsed > 0 and target_cycle_time > 0:
|
|
84
87
|
performance = (actual_parts * target_cycle_time / elapsed) * 100.0
|
|
@@ -89,6 +92,38 @@ def _loss_row(
|
|
|
89
92
|
return parts_out, avg_ct, performance, loss_seconds, elapsed
|
|
90
93
|
|
|
91
94
|
|
|
95
|
+
def _by_period(
|
|
96
|
+
data: pd.DataFrame, time_column: str, periods: pd.DataFrame, keys: list[str]
|
|
97
|
+
) -> pd.DataFrame:
|
|
98
|
+
"""Run seconds and parts per period, each cycle split at the boundaries.
|
|
99
|
+
|
|
100
|
+
A cycle completed by the reading at ``t`` ran during ``(t - interval_s,
|
|
101
|
+
t]``; its time is cut at the period boundaries and its parts are shared
|
|
102
|
+
in proportion to the time in each period (constant rate within a cycle).
|
|
103
|
+
Returns the period rows (``keys``, ``start``, ``end``) that received run
|
|
104
|
+
time, in time order, with ``run_seconds`` and ``parts``.
|
|
105
|
+
"""
|
|
106
|
+
end = data[time_column].reset_index(drop=True)
|
|
107
|
+
intervals = pd.DataFrame(
|
|
108
|
+
{
|
|
109
|
+
"start": end - pd.to_timedelta(data["interval_s"].to_numpy(), unit="s"),
|
|
110
|
+
"end": end,
|
|
111
|
+
"parts": data["parts"].to_numpy(dtype="float64"),
|
|
112
|
+
}
|
|
113
|
+
)
|
|
114
|
+
per = periods.sort_values("start", kind="stable").reset_index(drop=True)
|
|
115
|
+
per["_p"] = range(len(per))
|
|
116
|
+
pieces = split_intervals(intervals, per, keys=["_p"])
|
|
117
|
+
pieces["_parts"] = pieces["parts"] * pieces["fraction"]
|
|
118
|
+
sums = pieces.groupby("_p")[["seconds", "_parts"]].sum()
|
|
119
|
+
sums = sums[sums["seconds"] > 0]
|
|
120
|
+
out = per.loc[sums.index.astype(int), [*keys, "start", "end"]]
|
|
121
|
+
out = out.reset_index(drop=True)
|
|
122
|
+
out["run_seconds"] = sums["seconds"].to_numpy(dtype="float64")
|
|
123
|
+
out["parts"] = sums["_parts"].to_numpy(dtype="float64")
|
|
124
|
+
return out
|
|
125
|
+
|
|
126
|
+
|
|
92
127
|
class PerformanceLossEvents(Base):
|
|
93
128
|
"""Track performance and speed losses against target cycle times.
|
|
94
129
|
|
|
@@ -114,6 +149,12 @@ class PerformanceLossEvents(Base):
|
|
|
114
149
|
convenience. For a line that runs several part numbers, filter the data
|
|
115
150
|
to one part (or one product run) per call.
|
|
116
151
|
|
|
152
|
+
Each cycle ``(t_prev, t]`` is booked to the windows / shifts it ran in:
|
|
153
|
+
its time is cut at the boundaries and its parts are shared in
|
|
154
|
+
proportion to the time in each (constant rate within a cycle), so
|
|
155
|
+
``run_seconds`` never exceeds the window and ``actual_parts`` can be
|
|
156
|
+
fractional for a window that holds part of a cycle.
|
|
157
|
+
|
|
117
158
|
Merge keys: [date, shift] for shift-level, [period] for trend data.
|
|
118
159
|
|
|
119
160
|
Pipeline example::
|
|
@@ -286,19 +327,22 @@ class PerformanceLossEvents(Base):
|
|
|
286
327
|
pd.DataFrame(columns=_SHIFT_COLS), self.shift_definitions, None
|
|
287
328
|
)
|
|
288
329
|
|
|
289
|
-
|
|
290
|
-
data["
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
)
|
|
294
|
-
|
|
295
|
-
|
|
330
|
+
times = data[self.time_column]
|
|
331
|
+
starts = times - pd.to_timedelta(data["interval_s"].to_numpy(), unit="s")
|
|
332
|
+
periods = shift_periods(
|
|
333
|
+
starts.min(),
|
|
334
|
+
times.max(),
|
|
335
|
+
self.shift_definitions,
|
|
336
|
+
production_day=production_day,
|
|
296
337
|
)
|
|
338
|
+
booked = _by_period(data, self.time_column, periods, ["date", "shift"])
|
|
297
339
|
|
|
298
340
|
results = []
|
|
299
|
-
for
|
|
341
|
+
for date, shift, run, parts_in in booked[
|
|
342
|
+
["date", "shift", "run_seconds", "parts"]
|
|
343
|
+
].itertuples(index=False, name=None):
|
|
300
344
|
parts, avg_ct, performance, loss_seconds, run_seconds = _loss_row(
|
|
301
|
-
|
|
345
|
+
parts_in, run, target_cycle_time
|
|
302
346
|
)
|
|
303
347
|
results.append(
|
|
304
348
|
{
|
|
@@ -359,22 +403,20 @@ class PerformanceLossEvents(Base):
|
|
|
359
403
|
if data.empty:
|
|
360
404
|
return pd.DataFrame(columns=_SLOW_COLS)
|
|
361
405
|
|
|
362
|
-
|
|
406
|
+
booked = self._window_losses(data, window)
|
|
363
407
|
results = []
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
continue
|
|
368
|
-
|
|
408
|
+
for start, end, run, parts_in in booked[
|
|
409
|
+
["start", "end", "run_seconds", "parts"]
|
|
410
|
+
].itertuples(index=False, name=None):
|
|
369
411
|
parts, avg_ct, performance, loss_seconds, run_seconds = _loss_row(
|
|
370
|
-
|
|
412
|
+
parts_in, run, target_cycle_time
|
|
371
413
|
)
|
|
372
414
|
if performance < threshold_pct:
|
|
373
415
|
results.append(
|
|
374
416
|
{
|
|
375
417
|
"start": start,
|
|
376
|
-
"end":
|
|
377
|
-
"duration_seconds":
|
|
418
|
+
"end": end,
|
|
419
|
+
"duration_seconds": (end - start).total_seconds(),
|
|
378
420
|
"uuid": self.event_uuid,
|
|
379
421
|
"source_uuid": cycle_uuid,
|
|
380
422
|
"actual_parts": parts,
|
|
@@ -387,13 +429,14 @@ class PerformanceLossEvents(Base):
|
|
|
387
429
|
}
|
|
388
430
|
)
|
|
389
431
|
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
432
|
+
return pd.DataFrame(results, columns=_SLOW_COLS)
|
|
433
|
+
|
|
434
|
+
def _window_losses(self, data: pd.DataFrame, window: str) -> pd.DataFrame:
|
|
435
|
+
""":func:`_by_period` over the ``pd.Grouper(freq=window)`` bins."""
|
|
436
|
+
times = data[self.time_column]
|
|
437
|
+
starts = times - pd.to_timedelta(data["interval_s"].to_numpy(), unit="s")
|
|
438
|
+
periods = grouper_periods(starts.min(), times.max(), window)
|
|
439
|
+
return _by_period(data, self.time_column, periods, ["period"])
|
|
397
440
|
|
|
398
441
|
def performance_trend(
|
|
399
442
|
self,
|
|
@@ -429,15 +472,13 @@ class PerformanceLossEvents(Base):
|
|
|
429
472
|
if data.empty:
|
|
430
473
|
return add_period_window(pd.DataFrame(columns=_TREND_COLS), window)
|
|
431
474
|
|
|
432
|
-
|
|
475
|
+
booked = self._window_losses(data, window)
|
|
433
476
|
results = []
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
continue
|
|
438
|
-
|
|
477
|
+
for period, run, parts_in in booked[
|
|
478
|
+
["period", "run_seconds", "parts"]
|
|
479
|
+
].itertuples(index=False, name=None):
|
|
439
480
|
parts, avg_ct, performance, loss_seconds, run_seconds = _loss_row(
|
|
440
|
-
|
|
481
|
+
parts_in, run, target_cycle_time
|
|
441
482
|
)
|
|
442
483
|
results.append(
|
|
443
484
|
{
|
|
@@ -124,17 +124,31 @@ class CrossSignalAnalytics:
|
|
|
124
124
|
) -> dict:
|
|
125
125
|
"""Test whether `cause` Granger-causes `effect` using F-test.
|
|
126
126
|
|
|
127
|
+
One F-test is run per lag ``1..max_lag`` and the lag with the smallest
|
|
128
|
+
p-value is reported. Picking the best of several tests inflates the
|
|
129
|
+
false-positive rate (about 15% instead of 5% for ``max_lag=10`` on
|
|
130
|
+
independent noise), so the decision uses a Bonferroni correction for
|
|
131
|
+
the number of lags tested: ``p_value_adjusted = min(1, p_value * k)``
|
|
132
|
+
with ``k`` the number of lags that could be fitted, and ``is_causal``
|
|
133
|
+
is ``p_value_adjusted < significance``. This is conservative (the
|
|
134
|
+
lag tests are correlated) but keeps the false-positive rate at or
|
|
135
|
+
below ``significance``.
|
|
136
|
+
|
|
127
137
|
Args:
|
|
128
138
|
cause: Column name of the potential cause signal.
|
|
129
139
|
effect: Column name of the potential effect signal.
|
|
130
140
|
max_lag: Maximum number of lags to test.
|
|
131
|
-
significance:
|
|
141
|
+
significance: Threshold on the adjusted p-value for declaring
|
|
142
|
+
causality.
|
|
132
143
|
|
|
133
144
|
Returns:
|
|
134
|
-
Dict with optimal_lag, f_statistic, p_value
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
145
|
+
Dict with optimal_lag, f_statistic, p_value (the smallest,
|
|
146
|
+
unadjusted p-value over the lags), p_value_adjusted (the
|
|
147
|
+
Bonferroni-adjusted one), is_causal and results_by_lag (each
|
|
148
|
+
entry with lag, f_statistic and unadjusted p_value). Only rows
|
|
149
|
+
where both signals have a value are used. With too few of them
|
|
150
|
+
to fit a lag, ``f_statistic``, ``p_value`` and
|
|
151
|
+
``p_value_adjusted`` are NaN and ``is_causal`` is False.
|
|
138
152
|
"""
|
|
139
153
|
from scipy import stats as scipy_stats
|
|
140
154
|
|
|
@@ -185,16 +199,20 @@ class CrossSignalAnalytics:
|
|
|
185
199
|
"optimal_lag": 0,
|
|
186
200
|
"f_statistic": float("nan"),
|
|
187
201
|
"p_value": float("nan"),
|
|
202
|
+
"p_value_adjusted": float("nan"),
|
|
188
203
|
"is_causal": False,
|
|
189
204
|
"results_by_lag": [],
|
|
190
205
|
}
|
|
191
206
|
|
|
192
207
|
best = min(results_by_lag, key=lambda r: r["p_value"])
|
|
208
|
+
# Bonferroni over the lags actually tested.
|
|
209
|
+
p_adjusted = min(1.0, best["p_value"] * len(results_by_lag))
|
|
193
210
|
return {
|
|
194
211
|
"optimal_lag": best["lag"],
|
|
195
212
|
"f_statistic": best["f_statistic"],
|
|
196
213
|
"p_value": best["p_value"],
|
|
197
|
-
"
|
|
214
|
+
"p_value_adjusted": p_adjusted,
|
|
215
|
+
"is_causal": p_adjusted < significance,
|
|
198
216
|
"results_by_lag": results_by_lag,
|
|
199
217
|
}
|
|
200
218
|
|
|
@@ -20,8 +20,9 @@ all methods:
|
|
|
20
20
|
and counted in ``get_extraction_stats()["unmatched_ends"]``.
|
|
21
21
|
- ``is_complete`` is True only when both boundaries were seen. A cycle with no
|
|
22
22
|
end (the last one, or an aborted one) has ``cycle_end = NaT``. A cycle that
|
|
23
|
-
was already running at the first sample (its real start lies
|
|
24
|
-
data) keeps its observed end but has ``is_complete = False
|
|
23
|
+
was already running at the first non-missing sample (its real start lies
|
|
24
|
+
before the data) keeps its observed end but has ``is_complete = False``;
|
|
25
|
+
leading rows with a missing value do not count as data.
|
|
25
26
|
- Several start rows at the same timestamp are one start.
|
|
26
27
|
- ``cycle_uuid`` is deterministic: the same signal, method and start time
|
|
27
28
|
always give the same id, so ids are stable across runs and unique within a
|
|
@@ -169,32 +170,43 @@ class CycleExtractor(Base):
|
|
|
169
170
|
return pd.Series(pd.NA, index=frame.index, dtype="boolean")
|
|
170
171
|
return frame["value_bool"].astype("boolean")
|
|
171
172
|
|
|
172
|
-
def _bool_edges(
|
|
173
|
+
def _bool_edges(
|
|
174
|
+
self, frame: pd.DataFrame
|
|
175
|
+
) -> tuple[pd.Series, pd.Series, pd.Timestamp | None]:
|
|
173
176
|
"""Rising and falling edge times of ``value_bool``.
|
|
174
177
|
|
|
175
|
-
A missing sample holds the previous state
|
|
176
|
-
|
|
177
|
-
|
|
178
|
+
A missing sample holds the previous state; leading missing samples
|
|
179
|
+
count as False. Returns the rising-edge times, the falling-edge times,
|
|
180
|
+
and the time of the first non-missing sample when that sample is
|
|
181
|
+
True (else None): the signal was already True when it was first seen,
|
|
182
|
+
so the first rising edge (at that time) is not a real start.
|
|
178
183
|
"""
|
|
179
184
|
raw = self._bool_state(frame)
|
|
180
|
-
|
|
181
|
-
|
|
185
|
+
known_at = np.flatnonzero(raw.notna().to_numpy(dtype=bool))
|
|
186
|
+
times = frame[self.time_column]
|
|
187
|
+
partial = (
|
|
188
|
+
times.iloc[known_at[0]]
|
|
189
|
+
if len(known_at) and bool(raw.iloc[known_at[0]])
|
|
190
|
+
else None
|
|
191
|
+
)
|
|
182
192
|
state = raw.ffill().fillna(False).astype(bool)
|
|
183
193
|
prev = state.shift(fill_value=False)
|
|
184
|
-
times
|
|
185
|
-
return times[state & ~prev], times[~state & prev], initially_true
|
|
194
|
+
return times[state & ~prev], times[~state & prev], partial
|
|
186
195
|
|
|
187
|
-
def _bool_events(
|
|
188
|
-
|
|
196
|
+
def _bool_events(
|
|
197
|
+
self, frame: pd.DataFrame
|
|
198
|
+
) -> tuple[pd.Series, pd.Timestamp | None]:
|
|
199
|
+
"""Times of the True events of a pulse signal, and the partial start.
|
|
189
200
|
|
|
190
201
|
A signal that is never False is an event log: every True row is an
|
|
191
|
-
event. Otherwise a held True counts once, at
|
|
202
|
+
event (and none is partial). Otherwise a held True counts once, at
|
|
203
|
+
its rising edge; see :meth:`_bool_edges` for the partial start.
|
|
192
204
|
"""
|
|
193
205
|
raw = self._bool_state(frame)
|
|
194
206
|
if not raw.eq(False).fillna(False).any():
|
|
195
|
-
return frame[self.time_column][raw.eq(True).fillna(False)],
|
|
196
|
-
rising, _,
|
|
197
|
-
return rising,
|
|
207
|
+
return frame[self.time_column][raw.eq(True).fillna(False)], None
|
|
208
|
+
rising, _, partial = self._bool_edges(frame)
|
|
209
|
+
return rising, partial
|
|
198
210
|
|
|
199
211
|
# ------------------------------------------------------------------
|
|
200
212
|
# Extraction methods
|
|
@@ -206,19 +218,17 @@ class CycleExtractor(Base):
|
|
|
206
218
|
A cycle starts at a rising edge (False -> True) and ends at the next
|
|
207
219
|
falling edge (True -> False), i.e. at the first False sample. A missing
|
|
208
220
|
sample holds the previous state. A signal already True at its first
|
|
209
|
-
sample gives a first cycle with ``is_complete = False
|
|
221
|
+
non-missing sample gives a first cycle with ``is_complete = False``
|
|
222
|
+
(leading missing samples are not data).
|
|
210
223
|
|
|
211
224
|
Returns:
|
|
212
225
|
One row per cycle (see the module docstring); empty, with the
|
|
213
226
|
full column set, when no cycle is found.
|
|
214
227
|
"""
|
|
215
228
|
frame = self._signal_frame()
|
|
216
|
-
starts, ends,
|
|
229
|
+
starts, ends, partial = self._bool_edges(frame)
|
|
217
230
|
return self._generate_cycle_dataframe(
|
|
218
|
-
starts,
|
|
219
|
-
ends,
|
|
220
|
-
method="persistent",
|
|
221
|
-
partial_start=frame[self.time_column].iloc[0] if initially_true else None,
|
|
231
|
+
starts, ends, method="persistent", partial_start=partial
|
|
222
232
|
)
|
|
223
233
|
|
|
224
234
|
def process_trigger_cycle(self) -> pd.DataFrame:
|
|
@@ -234,13 +244,9 @@ class CycleExtractor(Base):
|
|
|
234
244
|
full column set, when no cycle is found.
|
|
235
245
|
"""
|
|
236
246
|
frame = self._signal_frame()
|
|
237
|
-
starts,
|
|
247
|
+
starts, partial = self._bool_events(frame)
|
|
238
248
|
return self._generate_cycle_dataframe(
|
|
239
|
-
starts,
|
|
240
|
-
starts,
|
|
241
|
-
method="trigger",
|
|
242
|
-
same_rows=True,
|
|
243
|
-
partial_start=frame[self.time_column].iloc[0] if initially_true else None,
|
|
249
|
+
starts, starts, method="trigger", same_rows=True, partial_start=partial
|
|
244
250
|
)
|
|
245
251
|
|
|
246
252
|
def process_separate_start_end_cycle(self) -> pd.DataFrame:
|
|
@@ -258,8 +264,7 @@ class CycleExtractor(Base):
|
|
|
258
264
|
full column set, when no cycle is found.
|
|
259
265
|
"""
|
|
260
266
|
start_frame = self._signal_frame(self.start_uuid)
|
|
261
|
-
starts,
|
|
262
|
-
partial = start_frame[self.time_column].iloc[0] if start_initially else None
|
|
267
|
+
starts, partial = self._bool_events(start_frame)
|
|
263
268
|
if self.uuid_column not in self.df.columns or self.start_uuid == self.end_uuid:
|
|
264
269
|
return self._generate_cycle_dataframe(
|
|
265
270
|
starts,
|
|
@@ -301,10 +306,12 @@ class CycleExtractor(Base):
|
|
|
301
306
|
times = frame[self.time_column]
|
|
302
307
|
starts = times[entered & (step == start_step)]
|
|
303
308
|
ends = times[entered & (step == end_step)]
|
|
304
|
-
|
|
309
|
+
# Time of the first non-missing sample: leading missing samples are
|
|
310
|
+
# not part of the step sequence.
|
|
311
|
+
known_at = np.flatnonzero(raw.notna().to_numpy(dtype=bool))
|
|
305
312
|
partial = (
|
|
306
|
-
|
|
307
|
-
if len(
|
|
313
|
+
times.iloc[known_at[0]]
|
|
314
|
+
if len(known_at) and raw.iloc[known_at[0]] == start_step
|
|
308
315
|
else None
|
|
309
316
|
)
|
|
310
317
|
return self._generate_cycle_dataframe(
|