code: def _get_distance_scaling_term(self, C, mag, rrup):
          
          if mag < 6.75:
              mag_factor = -(C["b1_lo"] + C["b2_lo"] * mag)
          else:
              mag_factor = -(C["b1_hi"] + C["b2_hi"] * mag)
          return mag_factor * np.log(rrup + 10.0) + (C["gamma"] * rrup)
docs: Returns the magnitude dependent distance scaling term