<reponame>javerbukh/jdaviz
from jdaviz.core.helpers import ConfigHelper
from ..default.plugins.line_lists.line_list_mixin import LineListMixin


class CubeViz(ConfigHelper, LineListMixin):
    """CubeViz Helper class"""
    _default_configuration = 'cubeviz'

    @property
    def fitted3d(self):
        """
        Returns the 3D fitted model parameters.

        Returns
        -------
        parameters : list
            list of Quantity 2D arrays, or None.
        """
        if hasattr(self.app, '_fitted_3d_model'):
            return self.app._fitted_3d_model
        else:
            return None

from jdaviz.core.helpers import ConfigHelper
from ..default.plugins.line_lists.line_list_mixin import LineListMixin


class CubeViz(ConfigHelper, LineListMixin):
    """CubeViz Helper class"""
    _default_configuration = 'cubeviz'

    @property
    def fitted3d(self):
        """
        Returns the 3D fitted model parameters.

        Returns
        -------
        parameters : list
            list of Quantity 2D arrays, or None.
        """
        if hasattr(self.app, '_fitted_3d_model'):
            return self.app._fitted_3d_model
        else:
            return None
CubeViz Helper class Returns the 3D fitted model parameters.          Returns         -------         parameters : list             list of Quantity 2D arrays, or None.