o
    :Î®c•  ã                   @   sl   d dl Zd dlmZ d dlmZ ej d¡ d dlm	Z	 d dl
m  m  mZ dd„ Zdd„ Zd	d
„ ZdS )é    N)ÚtestingÚastropy)Úfitsc                   C   s$   zt  d¡ W d S  ty   d‚w )Nr   © )ÚioÚ
use_pluginÚImportErrorr   r   r   úA/tmp/pip-target-vg8gfxp4/lib/python/skimage/io/tests/test_fits.pyÚtest_fits_plugin_import
   s
   ÿr
   c                   C   s   t  ¡  d S )N)r   Úreset_pluginsr   r   r   r	   Úteardown   s   r   c                 C   s@   t | ƒt |ƒkr
dS t| |ƒD ]\}}t ||k¡s dS qdS )zz
    Ancillary function to compare two ImageCollection objects, checking that
    their constituent arrays are equal.
    FT)ÚlenÚzipÚnpÚall)Úcollection1Úcollection2Úext1Úext2r   r   r	   Ú_same_ImageCollection   s   ÿr   )Únumpyr   Ú
skimage.ior   Úskimage._sharedr   ÚpytestÚimportorskipÚ
astropy.ior   Úskimage.io._plugins.fits_pluginÚ_pluginsÚfits_pluginÚfplugr
   r   r   r   r   r   r	   Ú<module>   s    
