B
    \              
   @   s<  d Z ddlmZ ddlmZ yddlmZ W nF ek
rr   ddl	m
Z eeeeddrled	n Y nX e  dd
lmZ e  ddlmZ e  ddlmZmZmZmZmZmZmZmZmZmZmZ ddl m!Z! ddl"m#Z#m$Z$m%Z% ddl&m'Z'm(Z(m)Z)m*Z* ddl+m,Z,m-Z-m.Z.m/Z/ ddl0m1Z1 ddl2m3Z3 ddl4m5Z5 ddl6m7Z7 ddlm8Z8m9Z9 ddlm:Z:m;Z; ddlm<Z< ddl<m<Z= e<j>dd e7 j?krddl@mAZAmBZB e<j>e<jCkredDdjDe<j> djDe<jC  d'ddZEdd  ZFdd!lmGZH dd"lmIZJ dd#lmKZL dd$lmMZN dd%lOmPZQ eQd&ZRdS )(zZ
    This is the h5py package, a Python interface to the HDF5
    scientific data format.
    )absolute_import)warn   )_errorsNz..zsetup.pyz\You cannot import h5py from inside the install directory.
Change to another directory first.)register_converters)_register_lzf)h5ah5dh5dsh5fh5fdh5gh5rh5sh5th5ph5z)filters)is_hdf5HLObjectEmpty)Fileregister_driverunregister_driverregistered_drivers)GroupSoftLinkExternalLinkHardLink)Dataset)Datatype)AttributeManager)
get_config)	ReferenceRegionReference)special_dtypecheck_dtype)version   )VirtualSourceVirtualLayoutzWh5py is running against HDF5 {0} when it was built against {1}, this may cause problemsz{0}.{1}.{2}Fc             C   s   ddl m} || dS )zERun tests with TextTestRunner and returns a TestResult instance.
    r   )	run_tests)verbose)Ztestsr+   )r,   r+    r-   ,lib/python3.7/site-packages/h5py/__init__.pyr+   O   s    r+   c              C   s   ddl } d| jkrd}yddlm} | }W n> tk
rZ   ddlm} | dk	}Y n t	k
rl   Y nX |rddl
m} | S td	dS )
zn Call this from an interactive IPython session to enable tab-completion
    of group and attribute names.
    r   NIPythonF)InteractiveShell)ipapir   )ipy_completerz3Completer must be enabled in active ipython session)sysmodulesZIPython.core.interactiveshellr0   ZinitializedImportErrorr/   r1   get	Exception r2   Zload_ipython_extensionRuntimeError)r3   Z
ip_runningr0   Z_ipapir2   r-   r-   r.   enable_ipython_completerW   s    
r:   )py_new_vlen)py_get_vlen)py_new_enum)py_get_enum)ModuleWrapperzh5py.highlevel)F)S__doc__Z
__future__r   warningsr   Z_warnr8   r   r5   os.pathpathZ_opexistsjoindirname__file__Zsilence_errorsZ_convr   Z_register_convertersr   r   r   r	   r
   r   r   r   r   r   r   r   Z_hlr   Z_hl.baser   r   r   Z	_hl.filesr   r   r   r   Z	_hl.groupr   r   r   r   Z_hl.datasetr   Z_hl.datatyper    Z	_hl.attrsr!   Zh5r"   r#   r$   r%   r&   r'   __version__Zhdf5_version_tupleZvds_min_hdf5_versionZ_hl.vdsr)   r*   Zhdf5_built_version_tupleformatr+   r:   r;   Znew_vlenr<   Zget_vlenr=   Znew_enumr>   Zget_enumZh5py_warningsr?   Z_ModuleWrapperZ	highlevelr-   r-   r-   r.   <module>   sR   
4

