
    i                     d    d dl Z d dlZd dlmZmZ d dlZd Zd Zd Z	d Z
d Zg dZd	 Zd
 Zd Zy)    N)assert_array_equalassert_warnsc                  l    t        j                  d      } t        t        t         j                  |        y Ndb3)pywtWaveletr   DeprecationWarningintwavewavelets    X/var/www/html/BatchJob/venv/lib/python3.12/site-packages/pywt/tests/test_deprecations.pytest_intwave_deprecationr   	   s!    ll5!G#T\\7;    c                  l    t        j                  d      } t        t        t         j                  |        y r   )r   r	   r   r
   centrfrqr   s    r   test_centrfrq_deprecationr      s!    ll5!G#T]]G<r   c                  n    t        j                  d      } t        t        t         j                  | d       y )Nr      )r   r	   r   r
   scal2frqr   s    r   test_scal2frq_deprecationr      s#    ll5!G#T]]GQ?r   c                  T    t        t        t        j                  t	        d             y )N   )r   r
   r   orthfiltrange r   r   test_orthfilt_deprecationr      s    #T]]E!H=r   c                  V    g d} g d}t        t        t        j                  | |f       y )N)r   r         )r   r
   r   integrate_wavelet)sigxgrids     r   test_integrate_wave_tupler$      s#    
CE#T%;%;c5\Jr   )zpdcpdsymppdsp1perc                  l    t         D ]+  } t        t        t        j                  j
                  |        - y N)	old_modesr   r
   r   Modesfrom_objectmodes    r   "test_MODES_from_object_deprecationr2   +   s*     G')?)?FGr   c                  `    d } t         D ]"  }t        t        | t        j                  |       $ y )Nc                     t        | |      S r,   )getattr)r.   names     r   get_modez3test_MODES_attributes_deprecation.<locals>.get_mode1   s    ud##r   )r-   r   r
   r   r.   )r7   r1   s     r   !test_MODES_attributes_deprecationr8   0   s-    $  E'4::tDEr   c            
      B   g d} t        j                  d      }t        j                         5  t        j                  dt
               | D ]=  \  }}t        t        j                  |d|      t        j                  |d|             ? 	 d d d        y # 1 sw Y   y xY w)N))r%   zero)r&   constant)r'   	symmetric)r(   periodic)r)   smooth)r*   periodizationg       @ignoredb2r0   )	nparangewarningscatch_warningssimplefilterr
   r   r   dwt)old_newxoldnews       r   test_mode_equivalencerL   8   s    )G 			"A		 	 	" =h(:; 	=HCtxx5s;#xx5s;=	== = =s   ABB)rD   numpyrB   numpy.testingr   r   r   r   r   r   r   r$   r-   r2   r8   rL   r   r   r   <module>rO      sD      : <
=
@
>K	G
E=r   