U
    ?h	                  	   @   s  d Z ddlZddlZddlZddlZddlZddddddd	d
dg	Zz4ejd dkr\ddl	Z	nddl
m	Z	 e ZdZW n ek
r   dZdZ	Y nX dZdZdZdZdZdejkrz"ddlmZ e ZdZdZdZW n ek
r   ed Y nX er@ejejeddZejedZeeZejedZ ee Zej!j"e ddZ#ej!j"eddZ$ej!j"eddZ%ej!j"e ddZ&dS )zcommon test-related code.    Nuses_matlabuses_futuresuses_pymatbridgeuses_precomputedmatlab_result_dict_cwtmatlab_result_dict_dwtfuturesmax_workerssize_set   )r   TFZreducedZ
PYWT_XSLOW)MatlabfullzTo run Matlab compatibility tests you need to have MathWorks MATLAB, MathWorks Wavelet Toolbox and the pymatbridge Python package installed.Ztestsdatazcwt_matlabR2015b_result.npzzdwt_matlabR2012a_result.npzzfutures not available)reasonz'pymatbridge and/or Matlab not availablezAPYWT_XSLOW set: skipping tests against precomputed Matlab resultsz9PYWT_XSLOW not set: test against precomputed matlab tests)'__doc__ossysmultiprocessingnumpynpZpytest__all__version_infor   Z
concurrent	cpu_countr	   Zfutures_availableImportErrorr   r   Zmatlab_missingZuse_precomputedr
   environZpymatbridger   Zmlabprintpathjoindirname__file__data_dirZmatlab_data_file_cwtloadZmatlab_data_file_dwtmarkZskipifr   r   r   r    r#   r#   >/var/www/html/venv/lib/python3.8/site-packages/pywt/_pytest.py<module>   s   


 
 
  