ó
ø`9Sc           @   st   d  d l  Td  d l Td  d l m Z d  d l Td  d l Td d g Z d e f d „  ƒ  YZ d e	 f d „  ƒ  YZ
 d S(   iÿÿÿÿ(   t   *(   t   txtt   PolarPerturbanceParamst   PolarPerturbanceParamsDialogc           B   s<  e  Z d  Z e d d d e e ƒ e d d d e d d d	 ƒe d
 d ƒ e d
 d d e d d d ƒe d
 d d e d d d ƒe d
 d d e d d d ƒe d
 d d e d d d ƒe d
 d ƒ e d
 d d e d d d ƒe d d ƒ e d d d e d d d ƒe d d d e d d d ƒe d d  d! e d d d ƒe d d" d# e d d d ƒe d d$ ƒ e d d% d& e d d d ƒe d' d( ƒ e d' d) d* e d+ d d d, d ƒe d' d- d. e d+ d d d, d ƒe d' d/ ƒ e d' d0 d1 e d+ d d d, d ƒe d' d2 d3 e d+ d d d, d ƒg Z	 e
 d4 „  ƒ Z e
 d5 „  ƒ Z RS(6   s¿   Parameters for the procedure of estimating stability to perturbances in
    input data of the aerosol backscatter and depolarization retrieval
    algorithm utilizing polarized lidar signals.t   Global_switchs   &Enable perturbance analysist   perturbanceEnabledt   Number_of_evaluationss   m =t   evaluationsi   t   minValuei   t   White_noises
   Amplitude:s   e<sub>0</sub> =t   whiteNoise0gš™™™™™É?g        s   e<sub>3</sub> =t   whiteNoise3s   e<sub>2,0</sub> =t   whiteNoise20s   e<sub>2,3</sub> =t   whiteNoise23s   Common amplitude:s   b =t   whiteNoiseCommong      ð?t   Linear_perturbances   Linear factor:s   k<sub>0</sub> =t   linear0s   k<sub>3</sub> =t   linear3s   k<sub>2,0</sub> =t   linear20s   k<sub>2,3</sub> =t   linear23s   Common linear factor:s   a =t   linearCommont   Coefficient_perturbances   Backscatter ratio perturbance:u   Î´R<sub>0</sub> =t   aerBackscatterRatioRef0gš™™™™™¹?t   maxValueu   Î´R<sub>3</sub> =t   aerBackscatterRatioRef3s   Cross channel perturbance:u   Î´Q<sub>0</sub> =t   lidarCalibration0u   Î´Q<sub>3</sub> =t   lidarCalibration3c         C   s   |  j  S(   N(   t   parameterList(   t   cls(    (    s   code\PolarPerturbanceParams.pyt   getParameterList\   s    c         C   s   d S(   Ns#   settings/PolarPerturbanceParams.ini(    (   R   (    (    s   code\PolarPerturbanceParams.pyt   getSettingsFilePath`   s    (   t   __name__t
   __module__t   __doc__t   ParameterInfot   boolt   Falset   intt   ParameterHeadert   floatR   t   classmethodR   R   (    (    (    s   code\PolarPerturbanceParams.pyR      s^   																c           B   sG   e  Z d  Z e d „  ƒ Z e d „  ƒ Z d „  Z d „  Z d „  Z RS(   sO   Dialog for interactive modification of a 'PolarPerturbanceParams'
    instance.c         C   sC   t  d d ƒ t  d d ƒ t  d d ƒ t  d d t ƒ t  d	 d
 ƒ g S(   NR   t    R   s   &Number of evaluationsR	   s   &White noiseR   s   &Linear perturbanceR   s   &Coefficient perturbance(   t   ParameterGroupInfot   True(   R   (    (    s   code\PolarPerturbanceParams.pyt   getGroupInfoListj   s    	c         C   s   d S(   Ns"   Depolarization perturbance options(    (   R   (    (    s   code\PolarPerturbanceParams.pyt   getWindowTitlez   s    c         C   sF   |  j  d ƒ } x0 |  j D]% } | d k r |  j | | ƒ q q Wd S(   s=   Disable parameter editing if 'perturbanceEnabled' is 'False'.R   N(   t   getValuet   editWidgetst
   setEnabled(   t   selft   isPerturbanceEnabledt   attributeName(    (    s   code\PolarPerturbanceParams.pyt   updateEditEnableStatus   s    c         C   s   |  j  d d d ƒ d  S(   Nt   linearR   t   a(   t   updateFactorOverflowMessages(   R1   (    (    s   code\PolarPerturbanceParams.pyt   updateCustomErrorMessagesˆ   s    c      
   C   s¦   |  j  | ƒ } | d k r d Sx€ |  j D]u } | j | ƒ r) | | k r) |  j  | ƒ } | d k	 rž | | d k rž |  j | d t j | d t ƒƒ qž q) q) Wd S(   sÊ   Check if parameters starting with 'specificAttrPrefix' are smaller
        than 1.0 when multiplied by the given common factor parameter, and set
        the error messages appropriately if they aren't.Ng      ð?sK   This value, when multiplied by the common factor %s, must be smaller than 1t	   addQuotes(   R.   t   NoneR/   t
   startswitht   setErrorMessageR   t   quoteR$   (   R1   t   specificAttrPrefixt   commonAttrNamet   commonDisplayNamet   commonValueR3   t   specificValue(    (    s   code\PolarPerturbanceParams.pyR7      s    	(	   R   R    R!   R(   R,   R-   R4   R8   R7   (    (    (    s   code\PolarPerturbanceParams.pyR   e   s   			N(   t   PyQt4.QtCoret   PyQt4.QtGuit   common.utilsR   t   common.ParamsCollectiont   common.ParamsDialogt   __all__t   ParamsCollectionR   t   ParamsDialogR   (    (    (    s   code\PolarPerturbanceParams.pyt   <module>   s   



H