U
    e»{jÈ  ã                   @   sh   d dl mZ d dlmZ d dlmZ d dlmZ d dl	m
Z
mZ dd„ Zdd	„ Zd
d„ ZdZdd„ ZdS )é    )Úraises)Úunits)Úassert_quantity_allclose)ÚWCS)Údeserialize_classÚwcs_info_strc                  C   s&   t ddddifƒ} t| dtj ƒ d S )Núastropy.units.Quantity)é
   ÚunitÚdegr	   )r   r   Úur   ©Úresult© r   úb/var/www/html/bwave/python/venv/lib/python3.8/site-packages/astropy/wcs/wcsapi/tests/test_utils.pyÚtest_construct	   s    r   c                  C   s2   t ddddifdd�} | tjdddifks.t‚d S )Nr   r   r
   r   F)Z	construct)r   r   ZQuantityÚAssertionErrorr   r   r   r   Útest_noconstruct   s
     ÿr   c               	   C   s@   t tƒ�} tddddidfƒ W 5 Q R X | jjd dks<t‚d S )Nr   r   r
   r   r   z Expected a tuple of three values)r   Ú
ValueErrorr   ÚvalueÚargsr   )Úexcr   r   r   Útest_invalid   s    
r   at  
WCS Transformation

This transformation has 1 pixel and 1 world dimensions

Array shape (Numpy order): None

Pixel Dim  Axis Name  Data size  Bounds
        0  None            None  None

World Dim  Axis Name  Physical Type  Units
        0  None       None           unknown

Correlation between pixel and world axes:

           Pixel Dim
World Dim    0
        0  yes
c                  C   s&   t dd�} t| ƒ ¡ t ¡ ks"t‚d S )Né   )Znaxis)r   r   ÚstripÚDEFAULT_1D_STRr   )Z	wcs_emptyr   r   r   Útest_wcs_info_str0   s    
r   N)Zpytestr   Zastropyr   r   Zastropy.tests.helperr   Zastropy.wcsr   Zastropy.wcs.wcsapi.utilsr   r   r   r   r   r   r   r   r   r   r   Ú<module>   s   