
`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   LiricPerturbanceParamst   LiricPerturbanceParamsDialogc        /   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 d2 d3  e d2 d4 d5 e d d d e d2 d6 d7 e d d d e d2 d8 d9 e d d d e d2 d:  e d2 d; d< e d d d e d2 d= d> e d d d e d2 d? d@ e d d d e d2 dA  e d2 dB dC e d d d e d2 dD dE e d d d e d2 dF dG e d d d e d2 dH  e d2 dI dJ e d d d e d2 dK dL e d d d e d2 dM dN e d d d e d2 dO dP e d d d e d2 dQ  e d2 dR dS e d d d g( Z	 e
 dT    Z e
 dU    Z RS(V   sm   Parameters for the procedure of estimating LIRIC algorithm's stability
    to perturbances in its input data.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>532</sub> =t   whiteNoise532s   e<sub>1064</sub> =t   whiteNoise1064u   e<sub>532,⊥</sub> =t   whiteNoise532Cs   Common amplitude:s   b =t   whiteNoiseCommong      ?t   Linear_perturbances   Linear factor:s   k<sub>355</sub> =t	   linear355s   k<sub>532</sub> =t	   linear532s   k<sub>1064</sub> =t
   linear1064u   k<sub>532,⊥</sub> =t
   linear532Cs   Common linear factor:s   a =t   linearCommont   Concentration_perturbances   Total concentrations:u   Ω<sub>fine</sub> =t   concentrationFineg?t   maxValueu   Ω<sub>coarse</sub> =t   concentrationCoarses   Sphericity:u   Ω<sub>sphericity</sub> =t   concentrationSphericityt   Phase_function_perturbances
   Fine mode:s   f<sub>1 (355)</sub> =t   phaseF11Fine355s   f<sub>2 (532)</sub> =t   phaseF11Fine532s   f<sub>3 (1064)</sub> =t   phaseF11Fine1064s   Coarse total mode:s   f<sub>4 (355)</sub> =t   phaseF11Coarse355s   f<sub>5 (532)</sub> =t   phaseF11Coarse532s   f<sub>6 (1064)</sub> =t   phaseF11Coarse1064s   Coarse spherical mode:s   f<sub>7 (355)</sub> =t   phaseF11Spherical355s   f<sub>8 (532)</sub> =t   phaseF11Spherical532s   f<sub>9 (1064)</sub> =t   phaseF11Spherical1064s   Coarse spheroid mode:s   f<sub>10 (355)</sub> =t   phaseF11Spheroid355s   f<sub>11 (532)</sub> =t   phaseF11Spheroid532s   f<sub>13 (1064)</sub> =t   phaseF11Spheroid1064u   f<sub>12 (532,⊥)</sub> = t   phaseF22Spheroid532s   Common factor:s   q = t   phaseCommonc         C   s   |  j  S(   N(   t   parameterList(   t   cls(    (    s   code\LiricPerturbanceParams.pyt   getParameterList   s    c         C   s   d S(   Ns#   settings/LiricPerturbanceParams.ini(    (   R*   (    (    s   code\LiricPerturbanceParams.pyt   getSettingsFilePath   s    (   t   __name__t
   __module__t   __doc__t   ParameterInfot   boolt   Falset   intt   ParameterHeadert   floatR)   t   classmethodR+   R,   (    (    (    s   code\LiricPerturbanceParams.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 'LiricPerturbanceParams'
    instance.c      	   C   sR   t  d d  t  d d  t  d d  t  d d  t  d	 d
 t  t  d d t  g S(   NR   t    R   s   &Number of evaluationsR	   s   &White noiseR   s   &Linear perturbanceR   s   &Phase function perturbanceR   s   &Concentration perturbance(   t   ParameterGroupInfot   True(   R*   (    (    s   code\LiricPerturbanceParams.pyt   getGroupInfoList   s    	c         C   s   d S(   Ns   LIRIC perturbance options(    (   R*   (    (    s   code\LiricPerturbanceParams.pyt   getWindowTitle   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\LiricPerturbanceParams.pyt   updateEditEnableStatus   s    c         C   s*   |  j  d d d  |  j  d d d  d  S(   Nt   linearR   t   at   phaseR(   t   q(   t   updateFactorOverflowMessages(   R?   (    (    s   code\LiricPerturbanceParams.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   quoteR2   (   R?   t   specificAttrPrefixt   commonAttrNamet   commonDisplayNamet   commonValueRA   t   specificValue(    (    s   code\LiricPerturbanceParams.pyRG      s    	(	   R-   R.   R/   R6   R:   R;   RB   RH   RG   (    (    (    s   code\LiricPerturbanceParams.pyR      s   			N(   t   PyQt4.QtCoret   PyQt4.QtGuit   common.utilsR   t   common.ParamsCollectiont   common.ParamsDialogt   __all__t   ParamsCollectionR   t   ParamsDialogR   (    (    (    s   code\LiricPerturbanceParams.pyt   <module>   s   



m