a
    ‡ù»jà  ã                   @   s‚   d dl mZmZmZmZmZ d dlmZmZm	Z	m
Z
 d dlm  mZ dd„ Zdd„ Zdd	„ Zd
d„ Zdd„ Zdd„ Zdd„ ZdS )é    )ÚfindÚvalueÚConstantWarningÚcÚspeed_of_light)Úassert_equalÚassert_Úassert_almost_equalÚsuppress_warningsNc                  C   sP   t ddd�} t| dgƒ t ddd�} t| g ƒ t ddd�} t| tg d¢ƒƒ d S )Nzweak mixingF©Zdispzweak mixing angleZ
qwertyuiopznatural unit)
znatural unit of velocityznatural unit of actionznatural unit of action in eV sznatural unit of massznatural unit of energyznatural unit of energy in MeVznatural unit of momentumz!natural unit of momentum in MeV/cznatural unit of lengthznatural unit of time)r   r   Úsorted)Úkeys© r   úGE:\soccer\ml_env\Lib\site-packages\scipy/constants/tests/test_codata.pyÚ	test_find   s    
r   c                  C   s$   d} t t| ƒtƒ t t| ƒtƒ d S )Núspeed of light in vacuum)r   r   r   r   )Zc_sr   r   r   Útest_basic_table_parse   s    r   c                   C   s   t dtjt d¡f dƒ d S )Nz%d %sr   z299792458 m s^-1)r   Ú_cdr   Úunitr   r   r   r   Útest_basic_lookup!   s    ÿr   c                   C   s   t ttdd�ƒdkƒ d S )NFr   i,  )r   Úlenr   r   r   r   r   Útest_find_all&   s    r   c                   C   s   t tddd�d dƒ d S )Nz	Wien freqFr   r   z(Wien frequency displacement law constant)r   r   r   r   r   r   Útest_find_single*   s    ÿr   c                   C   s   t tdƒtdƒƒ d S )Nzmagn. flux quantumzmag. flux quantum)r	   r   r   r   r   r   Útest_2002_vs_2006/   s    ÿr   c                  C   sf   t ƒ �L} |  t¡ tjD ]*}ttj| d t|ƒ t|ƒ dkƒ qW d   ƒ n1 sX0    Y  d S )Nr   )r
   Úfilterr   r   Zexact_valuesr   r   )ÚsupÚkeyr   r   r   Útest_exact_values4   s    

r   )Zscipy.constantsr   r   r   r   r   Znumpy.testingr   r   r	   r
   Zscipy.constants._codataÚ	constantsZ_codatar   r   r   r   r   r   r   r   r   r   r   r   Ú<module>   s   