Get dipole moment per unit cell in a supercell

Hi,

Is there a way to get the dipole moment per unit cell in a supercell from ASE? I saw this get_dipole_moment command which computes the dipole moment of the full system, but is there a way to get the dipole moment per unit cell in a supercell?

Thanks
Dominic