
    i              
          d Z ddlZddlZ	 ddlmZ  e       ZdZer e
d      dZg d	Zd
Z eeD  cg c]  }  ej                  |        c} g       Zej"                  j%                  d      Zej)                          	 i ZeD ]  Z ej.                  e      Zej3                  de       edk(  r e eej8                  d            g dz   Znej8                  ej8                  dz   fZeD ]  Zej?                  e      Z ej3                  de        eD ]  \  Z!Z" ejF                  e ejH                  g d      k(  d      r>ej3                  dejJ                         ej3                  dejL                         de"z  Z'nde" dZ'ejQ                  e'      Z)e)d   s e*d       ejV                  ejY                  d            Z- ejV                  ejY                  d            Z.dj_                  e"e e0e      dg      Z1dj_                  e"e e0e      dg      Z2e-ee1<   e.ee2<   ej3                  dejJ                         ej3                  dejL                         de" dZ'ejQ                  e'      Z)e)d   s e*d       ejV                  ejY                  d            Z- ejV                  ejY                  d            Z.dj_                  e"e e0e      dg      Z1dj_                  e"e e0e      d g      Z2e-ee1<   e.ee2<       	 ejg                           ejh                  d!i e y# e$ r  e	d       dZY ,w xY wc c} w # ejg                          w xY w)"zi This script was used to generate dwt_matlabR2012a_result.npz by storing
the outputs from Matlab R2012a.     N)MatlabFzTo run Matlab compatibility tests you need to have MathWorks MATLAB, MathWorks Wavelet Toolbox and the pymatbridge Python package installed.Tz/Can't generate matlab data files without MATLABreduced)	)zerozpd)constantsp0)	symmetricsym)reflectsymw)periodicppd)smoothsp1)periodizationper)antisymmetricasym)antireflectasymw)dbr
   coifbiorrbioi  waveletfull(   )d      i  i  iP     data)coif6coif7coif8coif9coif10coif11coif12coif13coif14coif15coif16coif17)axisLo_DHi_Dz/[ma, md] = dwt(data, Lo_D, Hi_D, 'mode', '%s');z'[ma, md] = dwt(data, wavelet, 'mode', 'z');successzXMatlab failed to execute the provided code. Check that the wavelet toolbox is installed.mamd_z*[ma, md] = dwt(data, Lo_D, Hi_D, 'mode', 'ma_pywtCoeffsmd_pywtCoeffs)zdwt_matlabR2012a_result.npz)5__doc__numpynppywtpymatbridger   mlab_matlab_missingImportErrorprintOSErrorsize_setmodesfamiliessumwavelistwaveletsrandomRandomStaterstatestartall_matlab_resultsr   Waveletwset_variablelistrangedec_len
data_sizesNrandnr!   pmodemmodeanyarraydec_lodec_hi	mlab_coderun_coderesRuntimeErrorasarrayget_variabler2   r3   joinstrma_keymd_keystopsavez)names   0`/var/www/html/BatchJob/venv/lib/python3.12/site-packages/pywt/tests/data/generate_matlab_data.py<module>ri      s  $  "8DO 
C
DD	# 19d#92>			t	$ 

4 00DLL!)W-veAIIr23,-J ))QYY]3J (	0A<<?Dfd+ % %0u2667hbhh  0d  'e  e  lm  n%%fahh7%%fahh7"249":I #J%PS TImmI.9~&GH H  RZZ 1 1$ 78RZZ 1 1$ 785'3q64"@A5'3q64"@A-/"6*-/"6* !!&!((3!!&!((3HsS	mmI.9~&GH H  RZZ 1 1$ 78RZZ 1 1$ 785'3q6?"KL5'3q6?"KL-/"6*-/"6*K%0(	000d 	IIK  =*< =c  	    O	. :p 	IIKs#   L5 M JM 5MMM"