MCPcopy Create free account
hub / github.com/VitoHowe/glm-coding / smooth_projection

Function smooth_projection

app/services/tenvision_adapter.py:155–159  ·  view source on GitHub ↗
(values, window=5)

Source from the content-addressed store, hash-verified

153
154
155def contiguous_runs(flags):
156 runs = []
157 start = None
158 for idx, flag in enumerate(flags):
159 if flag and start is None:
160 start = idx
161 elif not flag and start is not None:
162 runs.append((start, idx))

Callers 1

split_mask_to_boxesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected