def METHOD_NAME(self, v_mod):
    """
    Create :class:`~.TauModel` from velocity model.
    First, a slowness model is created from the velocity model, and then it
    is passed to :class:`~.TauModel`.
    """
    if v_mod is None:
        raise ValueError("v_mod is None.")
    if v_mod.is_spherical is False:
        raise Exception("Flat slowness model not yet implemented.")
    SlownessModel.debug = self.debug
    if self.debug:
        print("Using parameters provided in TauP_config.ini (or defaults "
              "if not) to call SlownessModel...")
    self.s_mod = SlownessModel(
        v_mod, self.min_delta_p, self.max_delta_p, self.max_depth_interval,
        self.max_range_interval * pi / 180.0, self.max_interp_error,
        self.allow_inner_core_s,
        _DEFAULT_VALUES["slowness_tolerance"])
    if self.debug:
        print("Parameters are:")
        print("taup.create.min_delta_p = " + str(self.s_mod.min_delta_p) +
              " sec / radian")
        print("taup.create.max_delta_p = " + str(self.s_mod.max_delta_p) +
              " sec / radian")
        print("taup.create.max_depth_interval = " +
              str(self.s_mod.max_depth_interval) + " kilometers")
        print("taup.create.max_range_interval = " +
              str(self.s_mod.max_range_interval) + " degrees")
        print("taup.create.max_interp_error = " +
              str(self.s_mod.max_interp_error) + " seconds")
        print("taup.create.allow_inner_core_s = " +
              str(self.s_mod.allow_inner_core_s))
        print("Slow model " + " " + str(self.s_mod.get_num_layers(True)) +
              " P layers," + str(self.s_mod.get_num_layers(False)) +
              " S layers")
    # if self.debug:
    #    print(self.s_mod)
    # set the debug flags to value given here:
    TauModel.debug = self.debug
    SlownessModel.debug = self.debug
    # Creates tau model from slownesses.
    return TauModel(self.s_mod, radius_of_planet=v_mod.radius_of_planet)