mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-09-13 23:14:17 +00:00
Add collect_values to the canary (push B: fresh defect)
This commit is contained in:
parent
6e548e93fd
commit
2d055f9300
1 changed files with 6 additions and 0 deletions
|
|
@ -25,3 +25,9 @@ def moving_average(values, window):
|
|||
chunk = values[start:start + window]
|
||||
averages.append(sum(chunk) / window)
|
||||
return averages
|
||||
|
||||
|
||||
def collect_values(values, collected=[]):
|
||||
"""Collect values for one independent operation."""
|
||||
collected.extend(values)
|
||||
return collected
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue