ts_shape.events.production.line_throughput
¤
Classes:
-
LineThroughputEvents
–Production: Line Throughput
LineThroughputEvents
¤
LineThroughputEvents(dataframe: DataFrame, *, event_uuid: str = 'prod:throughput', time_column: str = 'systime')
Bases: Base
Production: Line Throughput
Methods: - count_parts: Part counts per fixed window from a monotonically increasing counter. - takt_adherence: Cycle time violations against a takt time from step/boolean triggers.
Methods:
-
count_parts
–Compute parts per window for a counter uuid.
-
get_dataframe
–Returns the processed DataFrame.
-
takt_adherence
–Flag cycles whose durations exceed the takt_time.
Source code in src/ts_shape/events/production/line_throughput.py
15 16 17 18 19 20 21 22 23 24 |
|
count_parts
¤
count_parts(counter_uuid: str, *, value_column: str = 'value_integer', window: str = '1m') -> DataFrame
Compute parts per window for a counter uuid.
Returns columns: window_start, uuid, source_uuid, is_delta, count
Source code in src/ts_shape/events/production/line_throughput.py
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
|
get_dataframe
¤
get_dataframe() -> DataFrame
Returns the processed DataFrame.
Source code in src/ts_shape/utils/base.py
34 35 36 |
|
takt_adherence
¤
takt_adherence(cycle_uuid: str, *, value_column: str = 'value_bool', takt_time: str = '60s', min_violation: str = '0s') -> DataFrame
Flag cycles whose durations exceed the takt_time.
For boolean triggers: detect True rising edges as cycle boundaries. For integer steps: detect increments as cycle boundaries.
Returns: systime (at boundary), uuid, source_uuid, is_delta, cycle_time_seconds, violation
Source code in src/ts_shape/events/production/line_throughput.py
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 |
|