ó
ø`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   RamanPerturbanceParamst   RamanPerturbanceParamsDialogc           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 g Z	 e
 d'    Z e
 d(    Z RS()   sļ   Parameters for the procedure of estimating stability to perturbances in
    input data of the aerosol backscatter and lidar ratio retrieval algorithm
    utilizing Raman lidar signals.t   Global_switchs   &Enable perturbance analysist   perturbanceEnabledt   Number_of_evaluationss   m =t   evaluationsi   t   minValuei   t   White_noises
   Amplitude:s   e<sub>355</sub> =t   whiteNoise355gÉ?g        s   e<sub>387</sub> =t   whiteNoise387s   e<sub>532</sub> =t   whiteNoise532s   e<sub>607</sub> =t   whiteNoise607s   Common amplitude:s   b =t   whiteNoiseCommong      ð?t   Linear_perturbances   Linear factor:s   k<sub>355</sub> =t	   linear355s   k<sub>387</sub> =t	   linear387s   k<sub>532</sub> =t	   linear532s   k<sub>607</sub> =t	   linear607s   Common linear factor:s   a =t   linearCommonc         C   s   |  j  S(   N(   t   parameterList(   t   cls(    (    s   code\RamanPerturbanceParams.pyt   getParameterListJ   s    c         C   s   d S(   Ns#   settings/RamanPerturbanceParams.ini(    (   R   (    (    s   code\RamanPerturbanceParams.pyt   getSettingsFilePathN   s    (   t   __name__t
   __module__t   __doc__t   ParameterInfot   boolt   Falset   intt   ParameterHeadert   floatR   t   classmethodR   R   (    (    (    s   code\RamanPerturbanceParams.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 'RamanPerturbanceParams'
    instance.c         C   s7   t  d d  t  d d  t  d d  t  d d t  g S(	   NR   t    R   s   &Number of evaluationsR	   s   &White noiseR   s   &Linear perturbance(   t   ParameterGroupInfot   True(   R   (    (    s   code\RamanPerturbanceParams.pyt   getGroupInfoListX   s    c         C   s   d S(   Ns   Raman perturbance options(    (   R   (    (    s   code\RamanPerturbanceParams.pyt   getWindowTitlef   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\RamanPerturbanceParams.pyt   updateEditEnableStatusk   s    c         C   s   |  j  d d d  d  S(   Nt   linearR   t   a(   t   updateFactorOverflowMessages(   R+   (    (    s   code\RamanPerturbanceParams.pyt   updateCustomErrorMessagest   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   (   R+   t   specificAttrPrefixt   commonAttrNamet   commonDisplayNamet   commonValueR-   t   specificValue(    (    s   code\RamanPerturbanceParams.pyR1   y   s    	(	   R   R   R   R"   R&   R'   R.   R2   R1   (    (    (    s   code\RamanPerturbanceParams.pyR   S   s   			N(   t   PyQt4.QtCoret   PyQt4.QtGuit   common.utilsR   t   common.ParamsCollectiont   common.ParamsDialogt   __all__t   ParamsCollectionR   t   ParamsDialogR   (    (    (    s   code\RamanPerturbanceParams.pyt   <module>   s   



6