Update get_potentials to the new structure

Signed-off-by: Axel Davy <axel.davy@ens.fr>