o
    h                     @   sf   d Z ddlT ddlT ddlT ddlT ddlT e  dZdd Zdd Z	dd	 Z
e d
ur1e
e Z d
S d
S )z_Utilities to read and write images in various formats.

The following plug-ins are available:

   )*I   c                    s    fdd|D S )Nc                    s   g | ]} | qS  r   ).0separator_lengthcharr   N/var/www/html/scripts/venv/lib/python3.10/site-packages/skimage/io/__init__.py
<listcomp>   s    z_separator.<locals>.<listcomp>r   )r   lengthsr   r   r	   
_separator   s   r   c                 C   sD   |  dtd| |  dd |  dtd| | td| dS )z6Add separators and column titles to plugin info table.    =r   )PluginDescription   -N)insertr   append)
info_tablecolumn_lengthsr   r   r	   _format_plugin_info_table   s   r   c                 C   s   ddl m} dd tD }t|dkrtdd |D }nd}td | }||g}t|| |D ]3\}}|||}|g}	|	dd tt|d D  t	|	|D ]\}}
| |
| d|
 d	7 } qQq0|  } | S )
z^Add a list of plugins to the module docstring, formatted as
    a ReStructuredText table.
    r   )wrapc                 S   s(   g | ]}|d ks|t |ddfqS )testdescriptionzno description)plugin_infoget)r   pr   r   r	   r
   &   s    
z_update_doc.<locals>.<listcomp>c                 S   s   g | ]\}}t |qS r   )len)r   n_r   r   r	   r
   *   s    r   c                 S   s   g | ]}d qS ) r   )r   r    r   r   r	   r
   5   s     
)textwrapr   available_pluginsr   maxWRAP_LENr   extendrangezipljuststrip)docr   r   name_lengthdescription_lengthr   nameplugin_descriptiondescription_linesname_columnr   r   r   r	   _update_doc    s&   

 r4   N)__doc__manage_pluginssift
collection_io_image_stackreset_pluginsr'   r   r   r4   r   r   r   r	   <module>   s    