code: def get_magnitude_of_effect_from_spin_config(motif, spin_config):
          
          magnitude = "none"
          if motif == "oct":
              e_g = spin_config["e_g"]
              t_2g = spin_config["t_2g"]
              if (e_g % 2 != 0) or (t_2g % 3 != 0):
                  magnitude = "weak"
                  if e_g % 2 == 1:
                      magnitude = "strong"
          elif motif == "tet":
              e = spin_config["e"]
              t_2 = spin_config["t_2"]
              if (e % 3 != 0) or (t_2 % 2 != 0):
                  magnitude = "weak"
          return magnitude
docs: Roughly, the magnitude of Jahn-Teller distortion will be:
          * in octahedral environments, strong if e_g orbitals
          unevenly occupied but weak if t_2g orbitals unevenly
          occupied
          * in tetrahedral environments always weaker
          :param motif (str): "oct" or "tet"
          :param spin_config (dict): dict of 'e' (e_g) and 't' (t2_g)
          with number of electrons in each state