a
    ØcD  ć                   @   sh   d Z ddlZddlZdd ZedZe edu d”ZedZe edu d”Zed	Z	e e	du d
”Z
dS )zm Utilities for handling optional dependencies so that tests for
optional features can be skipped gracefully.
é    Nc                 C   s,   zt  | ”}W n ty"   Y dS 0 |S dS )a$  
    Optionally import a module, returning None if that module is unavailable.

    Parameters
    ----------
    name : Str
        The name of the module being imported.

    Returns
    -------
    None or module
        None if the module is not available, and the module otherwise.

    N)Ś	importlibŚimport_moduleŚImportError)ŚnameŚmodule© r   śj/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/apptools/_testing/optional_dependencies.pyŚoptional_import   s
    r	   ŚnumpyzNumPy not availableŚpandaszPandas not availableŚtableszPyTables not available)Ś__doc__r   Zunittestr	   r
   ZskipIfZrequires_numpyr   Zrequires_pandasr   Zrequires_tablesr   r   r   r   Ś<module>
   s   