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

Function contiguous_runs

app/services/tenvision_adapter.py:162–173  ·  view source on GitHub ↗
(flags)

Source from the content-addressed store, hash-verified

160 start = idx
161 elif not flag and start is not None:
162 runs.append((start, idx))
163 start = None
164 if start is not None:
165 runs.append((start, len(flags)))
166 return runs
167
168
169def to_list(value):
170 if value is None:
171 return []
172 if isinstance(value, np.ndarray):
173 return value.tolist()
174 return list(value)
175
176

Callers 1

split_mask_to_boxesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected