Ë
    ¢�Djé  ã                   óü  — d dl Z d dlZd dlZd dlZd dlZd dlmZ 	 d dl	Z	 e	j                  d«       dZ e j                  e«      ZdZ	  eej$                  j'                  dd«      «      Zeej(                  j*                  _        erej1                  d«       nej1                  d«       d	„ Zd
„ Zd„ Z ej8                  «       d„ «       Z ej8                  «       d„ «       Zd„ Zy# e$ r dZY Œ»w xY w# e$ r Y Œtw xY w)é    N)ÚPYTHON_IMPL_WASMÚaggTFÚSM_TEST_COPY_ON_WRITEzCopy on Write Enabled!zCopy on Write disabledc                 óô   — | j                  ddd¬«       | j                  ddd¬«       | j                  ddd¬«       | j                  d	dd
¬«       | j                  ddd¬«       | j                  ddd¬«       y )Nú--skip-slowÚ
store_truezskip slow tests)ÚactionÚhelpú--only-slowzrun only slow testsú--skip-exampleszskip tests of examplesú--skip-matplotlibz$skip tests that depend on matplotlibú--skip-smokezskip smoke testsú--only-smokezrun only smoke tests)Ú	addoption)Úparsers    úXC:\Crop_Prediction\Backend\crop-ai-system\venv\Lib\site-packages\statsmodels/conftest.pyÚpytest_addoptionr   !   s¡   € Ø
×Ñ�]¨<Ø+ð ô -à
×Ñ�]¨<Ø/ð ô 1à
×ÑÐ&¨|Ø2ð ô 4à
×ÑÐ(°Ø@ð ô Bà
×Ñ�^¨LØ,ð ô .à
×Ñ�^¨LØ0ð õ 2ó    c                 óB  — d| j                   v r0| j                  j                  d«      rt        j                  d«       d| j                   vr0| j                  j                  d«      rt        j                  d«       d| j                   v r0| j                  j                  d«      rt        j                  d«       d	| j                   v r0| j                  j                  d
«      rt        j                  d«       d	| j                   v rt
        st        j                  d«       d| j                   v r0| j                  j                  d«      rt        j                  d«       d| j                   vr2| j                  j                  d«      rt        j                  d«       y y y )NÚslowr   zskipping due to --skip-slowr   zskipping due to --only-slowÚexampler   zskipping due to --skip-examplesÚ
matplotlibr   z!skipping due to --skip-matplotlibz)skipping since matplotlib is not intalledÚsmoker   zskipping due to --skip-smoker   zskipping due to --only-smoke)ÚkeywordsÚconfigÚ	getoptionÚpytestÚskipÚHAVE_MATPLOTLIB)Úitems    r   Úpytest_runtest_setupr!   0   s%  € Ø�—‘Ñ 4§;¡;×#8Ñ#8¸Ô#GÜ�‰Ð1Ô2à�T—]‘]Ñ" t§{¡{×'<Ñ'<¸]Ô'KÜ�‰Ð1Ô2à�D—M‘MÑ! d§k¡k×&;Ñ&;Ð<MÔ&NÜ�‰Ð5Ô6à�t—}‘}Ñ$Ø�K‰K×!Ñ!Ð"5Ô6Ü�‰Ð7Ô8à�t—}‘}Ñ$­_Ü�‰Ð?Ô@à�$—-‘-Ñ D§K¡K×$9Ñ$9¸.Ô$IÜ�‰Ð2Ô3à�d—m‘mÑ#¨¯©×(=Ñ(=¸nÔ(MÜ�‰Ð2Õ3ð )NÐ#r   c                 óŠ   — 	 dd l } |j                  d«       	 ddlm}  |«        y # t        $ r Y y w xY w# t        $ r Y y w xY w)Nr   r   )Úregister_matplotlib_converters)r   ÚuseÚpandas.plottingr#   ÚImportError)r   r   r#   s      r   Úpytest_configurer'   H   sI   € ð	ÛØˆ
�‰�uÔð	ÝFÙ*Õ,øÜò 	Ùð	ûäò Ùðús#   ‚6 ™' §	3°6 ²3³6 ¶	AÁAc               #   ó\   ‡K  — 	 ddl Šˆfd„} | –—  | «        y# t        $ r d„ } Y Œw xY w­w)aœ  
    Fixture that closes all figures after a test function has completed

    Returns
    -------
    closer : callable
        Function that will close all figures when called.

    Notes
    -----
    Used by passing as an argument to the function that produces a plot,
    for example

    def test_some_plot(close_figures):
        <test code>

    If a function creates many figures, then these can be destroyed within a
    test function by calling close_figures to ensure that the number of
    figures does not become too large.

    def test_many_plots(close_figures):
        for i in range(100000):
            plt.plot(x,y)
            close_figures()
    r   Nc                  ó<   •— ‰ j                   j                  d«       y )NÚall)ÚpyplotÚclose)r   s   €r   r,   zclose_figures.<locals>.closes   s   ø€ Ø×Ñ×#Ñ# EÕ*r   c                   ó   — y )N© r.   r   r   r,   zclose_figures.<locals>.closew   s   € Ør   )Úmatplotlib.pyplotr&   )r,   r   s    @r   Úclose_figuresr0   U   s5   øè ø€ ð6Û ô	+ð ‚KÙ	…Gøô ò ô	ðüs   ƒ,…	 Ž,š)¦,¨)©,c               #   óÌ   K  — t         j                  j                  «       } t         j                  j                  d«       d–— t         j                  j	                  | «       y­w)a'  
    Fixture that set the global RandomState to the fixed seed 1

    Notes
    -----
    Used by passing as an argument to the function that uses the global
    RandomState

    def test_some_plot(reset_randomstate):
        <test code>

    Returns the state after the test function exits
    é   N)ÚnpÚrandomÚ	get_stateÚseedÚ	set_state)Ústates    r   Úreset_randomstater9   ~   s?   è ø€ ô �I‰I×ÑÓ!€EÜ‡I�I‡N�N�1ÔÛ	Ü‡I�I×Ñ˜Õùs   ‚A"A$c                 ó  — t         r„|D ]~  }d|j                  v sŒ|j                  d«      }|sŒ&t        |j                  «      }d|d<   t        j                  j                  di |¤Ž}|j                  |«       ||j                  d<   Œ€ y y )NÚxfailFÚstrictr.   )	r   r   Úget_closest_markerÚdictÚkwargsr   Úmarkr;   Ú
add_marker)r   Úitemsr    r@   Ú
new_kwargsÚnew_marks         r   Úpytest_collection_modifyitemsrE   ™   sƒ   € ÝØò 
	6ˆDØ˜$Ÿ-™-Ò'Ø×.Ñ.¨wÓ7�Úô "& d§k¡kÓ!2�JØ+0�J˜xÑ(Ü%Ÿ{™{×0Ñ0Ñ>°:Ñ>�HØ—O‘O HÔ-Ø-5�D—M‘M 'Ò*ñ
	6ð 	r   ) ÚloggingÚosÚnumpyr3   ÚpandasÚpdr   Ústatsmodels.compat.pythonr   r   r$   r   r&   Ú	getLoggerÚ__name__ÚloggerÚcowÚboolÚenvironÚgetÚoptionsÚmodeÚcopy_on_writeÚAttributeErrorÚcriticalr   r!   r'   Úfixturer0   r9   rE   r.   r   r   ú<module>rY      s  ðÛ Û 	ã Û Û Ý 6ðÛà€J‡N�N�5ÔØ€Oð
 
ˆ×	Ñ	˜8Ó	$€à€ð	Ù
ˆr�z‰z�~‰~Ð5°uÓ=Ó
>€CØ$'€B‡J�J‡O�OÔ!ñ Ø
‡O�OÐ,Õ-à
‡O�OÐ,Ô-ò2ò4ò0
ð €‡�Óñ%ó ð%ðP €‡�Óñó ðó4øðW ò Ø‚Oðûð ò 	Ùð	ús#   œC& Á	=C3 Ã&C0Ã/C0Ã3C;Ã:C;