cindeem/nibabel — comment on commit c5192e8c0e89d5fbd90467b077b2b6009f44e812
File:  line 0
By matthew-brett:

Sorry - I got a bit confused.

mlist is something that has 'ids' in its first column?

These ids are sometimes zero or negative meaning they are - ? not present or not frames or something

Did I understand correctly that the algorithm is the same as the one below?

ids = mlist[:, 0]
valid_ids = ids[ids > 0]
valid_order = np.argsort(valid_ids)
for i, id_no in enumerate(valid_ids):
id_dict[i] = [valid_order[i], id_no]

So the dictionary will have keys of ints = `range(len(valid_ids))` (so maybe less than mlist.shape[0]) ?