In [1]:
import pyspeckit

# Load the spectrum
sp = pyspeckit.Spectrum('nh3_11.fits')

#sp.Registry.add_fitter('n2hp_vtau',pyspeckit.models.n2hp.n2hp_vtau_fitter,4)

sp.Registry.add_fitter('nh3_vtau', pyspeckit.models.ammonia_hf.nh3_vtau['oneone'].fitter, 4)
sp.plotter()
sp.specfit(fittype='nh3_vtau', multifit=None, guesses=[5, 2, 8, 0.5],
           show_hyperfine_components=True)
support for accessing str attributes such as 'lower' from PhysicalType instances is deprecated since 4.3 and will be removed in a subsequent release.
support for accessing str attributes such as 'title' from PhysicalType instances is deprecated since 4.3 and will be removed in a subsequent release.
WARNING: The multifit keyword is no longer required.  All fits allow for multiple components. [pyspeckit.spectrum.fitters]
support for accessing str attributes such as 'lower' from PhysicalType instances is deprecated since 4.3 and will be removed in a subsequent release.
In [ ]: