add motion filter
This PR adds a final check that remove pseudos from motions dict if all its reals are not moving.
For most cases, those pseudos are already filtered by the fill_motion_dict
function but in some cases it is
necessary to check again once all motions has been discovered (i.e after fill_motion_dict
recursions)
Edited by Perceval Guillou