(flags)
| 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 | |
| 169 | def 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 |
no outgoing calls
no test coverage detected