code: def get_pelecs_and_pions(self, convert_to_muC_per_cm2=False):
          
  
          if not convert_to_muC_per_cm2:
              return self.p_elecs, self.p_ions
  
          if convert_to_muC_per_cm2:
              p_elecs = self.p_elecs.T
              p_ions = self.p_ions.T
  
              volumes = [s.lattice.volume for s in self.structures]
              e_to_muC = -1.6021766e-13
              cm2_to_A2 = 1e16
              units = 1.0 / np.array(volumes)
              units *= e_to_muC * cm2_to_A2
  
              p_elecs = np.matmul(units, p_elecs)
              p_ions = np.matmul(units, p_ions)
  
              p_elecs, p_ions = p_elecs.T, p_ions.T
  
              return p_elecs, p_ions
docs: Get the electronic and ionic dipole moments / polarizations.
  
          convert_to_muC_per_cm2: Convert from electron * Angstroms to microCoulomb
              per centimeter**2