U
    e»{j;  ã                   @   s*   d dgZ G dd „ d ƒZG dd„ deƒZdS )ÚBaseTransformÚCompositeTransformc                   @   s   e Zd ZdZdd„ ZdS )r   z}
    A transformation object.

    This is used to construct transformations such as scaling, stretching, and
    so on.
    c                 C   s
   t || ƒS ©N)r   )ÚselfÚother© r   ú^/var/www/html/bwave/python/venv/lib/python3.8/site-packages/astropy/visualization/transform.pyÚ__add__   s    zBaseTransform.__add__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r      s   c                       s6   e Zd ZdZ‡ fdd„Zd	dd„Zedd„ ƒZ‡  ZS )
r   a  
    A combination of two transforms.

    Parameters
    ----------
    transform_1 : :class:`astropy.visualization.BaseTransform`
        The first transform to apply.
    transform_2 : :class:`astropy.visualization.BaseTransform`
        The second transform to apply.
    c                    s   t ƒ  ¡  || _|| _d S r   )ÚsuperÚ__init__Útransform_1Útransform_2)r   r   r   ©Ú	__class__r   r   r      s    
zCompositeTransform.__init__Tc                 C   s   | j | j||d�|d�S )N)Úclip)r   r   )r   Úvaluesr   r   r   r   Ú__call__$   s    zCompositeTransform.__call__c                 C   s   |   | jj| jj¡S r   )r   r   Úinverser   )r   r   r   r   r   '   s    zCompositeTransform.inverse)T)	r	   r
   r   r   r   r   Úpropertyr   Ú__classcell__r   r   r   r   r      s
   
N)Ú__all__r   r   r   r   r   r   Ú<module>   s   