
    e`                     H   d dl Z  e j                  dd      Z e j                  dd      j                  d      Zi Zd ZeD ])  Zej                  e      dz
  Z	edk(  rd	Z eed
e	z         +  edd        edd        edd        edd        edd       d Z
d Zd Zy)    NNFKCu   yzafpnµm kMGTPEZYu+   m,s,g,W,J,V,A,F,T,Hz,Ohm,Ω,S,N,C,px,b,B,Pa,c                 V    t               }t        D ]  }||| |z   <   |t        | |z   <    y )N)globalsUNITSallUnits)prefixvalgus       1/usr/lib/python3/dist-packages/pyqtgraph/units.pyaddUnitr      s3    	A #&1*"!#         i  cg{Gz?dg?da
   hd   r   gư>c                      y)z
    Evaluate a unit string into ([numerators,...], [denominators,...])
    Examples:
        N m/s^2   =>  ([N, m], [s, s])
        A*s / V   =>  ([A, s], [V,])
    N )unitStrs    r   	evalUnitsr   (   s     	r   c                      y)z
    Format a unit specification ([numerators,...], [denominators,...])
    into a string (this is the inverse of evalUnits)
    Nr   unitss    r   formatUnitsr    2       
 	r   c                      y)z
    Cancel units that appear in both numerator and denominator, then attempt to replace 
    groups of units with single units where possible (ie, J/s => W)
    Nr   r   s    r   simplifyr#   :   r!   r   )unicodedata	normalizeSI_PREFIXESsplitr   r   r   preindexvr   r    r#   r   r   r   <module>r+      s     $k##F,ABf&TU[[\_`#  C#"A
czC	 T  S  b  S  T 			r   