Source code for mufasa.spec_models.n2hp_multiv

"""
`Deprecated` - will be removed in v1.6.0.

.. deprecated:: 1.5.0
    This module is deprecated and will be removed in v1.6.0.
    Use instances of :class:`N2HplusModel <mufasa.spec_models.SpecModels.N2HplusModel>` instead.
"""

#===============================================================================================

import warnings

warnings.warn(
    "The `n2hp_multiv.py` module is deprecated and will be removed in v1.6.0. "
    "Use the 'SpecModels.N2HplusModel' class instead.",
    DeprecationWarning,
    stacklevel=2
)

#===============================================================================================

from .SpecModels import N2HplusModel
n2hp_model = N2HplusModel()

[docs] def n2hp_multi_v_model_generator(n_comp, linenames = None): return n2hp_model.multi_v_model_generator(n_comp)
[docs] def n2hp_multi_v(xarr, *args, **kwargs): return n2hp_model.multi_v_spectrum(xarr, *args)
def _n2hp_spectrum(xarr, tex, tau_dict, width, xoff_v, line_names, background_ta=0.0, fillingfraction=None, return_components=False): return n2hp_model._single_spectrum_hf(xarr, tex, tau_dict, width, xoff_v, background_ta=background_ta)
[docs] def T_antenna(Tbright, nu): return n2hp_model.T_antenna(Tbright, nu)