(bodyparts2connect, all_bpts)
| 56 | |
| 57 | |
| 58 | def get_segment_indices(bodyparts2connect, all_bpts): |
| 59 | bpts2connect = [] |
| 60 | for bpt1, bpt2 in bodyparts2connect: |
| 61 | if bpt1 in all_bpts and bpt2 in all_bpts: |
| 62 | bpts2connect.extend( |
| 63 | zip( |
| 64 | *( |
| 65 | np.flatnonzero(all_bpts == bpt1), |
| 66 | np.flatnonzero(all_bpts == bpt2), |
| 67 | ), |
| 68 | strict=False, |
| 69 | ) |
| 70 | ) |
| 71 | return bpts2connect |
| 72 | |
| 73 | |
| 74 | def CreateVideo( |
no outgoing calls
no test coverage detected