gwexpy.interop.pyspeckit_
Interoperability with pyspeckit.
Functions
|
Convert a pyspeckit Spectrum to a gwexpy object. |
|
Convert a gwexpy object to a pyspeckit Spectrum. |
- gwexpy.interop.pyspeckit_.to_pyspeckit(data, **kwargs)[source]
Convert a gwexpy object to a pyspeckit Spectrum.
- Parameters:
data (FrequencySeries) – Input data.
**kwargs – Additional arguments for pyspeckit.Spectrum.
- Return type:
pyspeckit.Spectrum
- gwexpy.interop.pyspeckit_.from_pyspeckit(cls, spectrum, **kwargs)[source]
Convert a pyspeckit Spectrum to a gwexpy object.
- Parameters:
cls (class) – Target class (FrequencySeries).
spectrum (pyspeckit.Spectrum) – Input spectrum.
**kwargs – Additional keyword arguments passed to the target constructor.
- Return type:
FrequencySeries