Changeset 85487ebd in sasview for src


Ignore:
Timestamp:
Jun 16, 2017 3:25:56 AM (8 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
689222c
Parents:
72f4834
Message:

more code review issues addressed SASVIEW-597

Location:
src/sas/qtgui
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/MainWindow/UI/MainWindowUI.ui

    rcd2cc745 r85487ebd  
    384384  <action name="actionFit_Options"> 
    385385   <property name="text"> 
    386     <string>Fit Options</string> 
     386    <string>Fit Algorithms</string> 
    387387   </property> 
    388388  </action> 
  • src/sas/qtgui/Perspectives/Fitting/FittingOptions.py

    r72f4834 r85487ebd  
    4646        self.setFixedSize(self.minimumSizeHint()) 
    4747 
    48         self.setWindowTitle("Fitting Options") 
     48        self.setWindowTitle("Fit Algorithms") 
    4949 
    5050        # Fill up the algorithm combo, based on what BUMPS says is available 
  • src/sas/qtgui/Perspectives/Fitting/UI/FittingOptionsUI.ui

    r72f4834 r85487ebd  
    6868             </item> 
    6969             <item row="0" column="1"> 
    70               <widget class="QLineEdit" name="samples_dream"/> 
     70              <widget class="QLineEdit" name="samples_dream"> 
     71               <property name="toolTip"> 
     72                <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Number of points to be drawn from the Markov chain.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
     73               </property> 
     74              </widget> 
    7175             </item> 
    7276             <item row="1" column="0"> 
     
    7882             </item> 
    7983             <item row="1" column="1"> 
    80               <widget class="QLineEdit" name="burn_dream"/> 
     84              <widget class="QLineEdit" name="burn_dream"> 
     85               <property name="toolTip"> 
     86                <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;The number of iterations to required for the Markov chain to converge to the equilibrium distribution.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
     87               </property> 
     88              </widget> 
    8189             </item> 
    8290             <item row="2" column="0"> 
     
    8896             </item> 
    8997             <item row="2" column="1"> 
    90               <widget class="QLineEdit" name="pop_dream"/> 
     98              <widget class="QLineEdit" name="pop_dream"> 
     99               <property name="toolTip"> 
     100                <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;The size of the population.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
     101               </property> 
     102              </widget> 
    91103             </item> 
    92104             <item row="3" column="0"> 
     
    99111             <item row="3" column="1"> 
    100112              <widget class="QComboBox" name="init_dream"> 
     113               <property name="toolTip"> 
     114                <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-style:italic;&quot;&gt;Initializer&lt;/span&gt; determines how the population will be initialized. The options are as follows:&lt;/p&gt;&lt;p&gt;&lt;span style=&quot; font-style:italic;&quot;&gt;eps&lt;/span&gt; (epsilon ball), in which the entire initial population is chosen at random from within a tiny hypersphere centered about the initial point&lt;/p&gt;&lt;p&gt;&lt;span style=&quot; font-style:italic;&quot;&gt;lhs&lt;/span&gt; (latin hypersquare), which chops the bounds within each dimension in &lt;span style=&quot; font-weight:600;&quot;&gt;k&lt;/span&gt; equal sized chunks where &lt;span style=&quot; font-weight:600;&quot;&gt;k&lt;/span&gt; is the size of the population and makes sure that each parameter has at least one value within each chunk across the population.&lt;/p&gt;&lt;p&gt;&lt;span style=&quot; font-style:italic;&quot;&gt;cov&lt;/span&gt; (covariance matrix), in which the uncertainty is estimated using the covariance matrix at the initial point, and points are selected at random from the corresponding gaussian ellipsoid&lt;/p&gt;&lt;p&gt;&lt;span style=&quot; font-style:italic;&quot;&gt;random&lt;/span&gt; (uniform random), in which the points are selected at random within the bounds of the parameters&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
     115               </property> 
    101116               <item> 
    102117                <property name="text"> 
     
    129144             </item> 
    130145             <item row="4" column="1"> 
    131               <widget class="QLineEdit" name="thin_dream"/> 
     146              <widget class="QLineEdit" name="thin_dream"> 
     147               <property name="toolTip"> 
     148                <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;The amount of thinning to use when collecting the population.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
     149               </property> 
     150              </widget> 
    132151             </item> 
    133152             <item row="5" column="0"> 
     
    139158             </item> 
    140159             <item row="5" column="1"> 
    141               <widget class="QLineEdit" name="steps_dream"/> 
     160              <widget class="QLineEdit" name="steps_dream"> 
     161               <property name="toolTip"> 
     162                <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Determines the number of iterations to use for drawing samples after burn in.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
     163               </property> 
     164              </widget> 
    142165             </item> 
    143166            </layout> 
     
    175198             </item> 
    176199             <item row="0" column="1"> 
    177               <widget class="QLineEdit" name="steps_lm"/> 
     200              <widget class="QLineEdit" name="steps_lm"> 
     201               <property name="toolTip"> 
     202                <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;The number of gradient steps to take.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
     203               </property> 
     204              </widget> 
    178205             </item> 
    179206             <item row="1" column="0"> 
     
    185212             </item> 
    186213             <item row="1" column="1"> 
    187               <widget class="QLineEdit" name="ftol_lm"/> 
     214              <widget class="QLineEdit" name="ftol_lm"> 
     215               <property name="toolTip"> 
     216                <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Used to determine when the fit has reached the point where no significant improvement is expected.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
     217               </property> 
     218              </widget> 
    188219             </item> 
    189220             <item row="2" column="0"> 
     
    195226             </item> 
    196227             <item row="2" column="1"> 
    197               <widget class="QLineEdit" name="xtol_lm"/> 
     228              <widget class="QLineEdit" name="xtol_lm"> 
     229               <property name="toolTip"> 
     230                <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Used to determine when the fit has reached the point where no significant improvement is expected.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
     231               </property> 
     232              </widget> 
    198233             </item> 
    199234            </layout> 
     
    231266             </item> 
    232267             <item row="0" column="1"> 
    233               <widget class="QLineEdit" name="steps_newton"/> 
     268              <widget class="QLineEdit" name="steps_newton"> 
     269               <property name="toolTip"> 
     270                <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;The number of gradient steps to take.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
     271               </property> 
     272              </widget> 
    234273             </item> 
    235274             <item row="1" column="0"> 
     
    241280             </item> 
    242281             <item row="1" column="1"> 
    243               <widget class="QLineEdit" name="starts_newton"/> 
     282              <widget class="QLineEdit" name="starts_newton"> 
     283               <property name="toolTip"> 
     284                <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Value thattells the optimizer to restart a given number of times. Each time it restarts it uses a random starting point.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
     285               </property> 
     286              </widget> 
    244287             </item> 
    245288             <item row="2" column="0"> 
     
    251294             </item> 
    252295             <item row="2" column="1"> 
    253               <widget class="QLineEdit" name="ftol_newton"/> 
     296              <widget class="QLineEdit" name="ftol_newton"> 
     297               <property name="toolTip"> 
     298                <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Used to determine when the fit has reached the point where no significant improvement is expected.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
     299               </property> 
     300              </widget> 
    254301             </item> 
    255302             <item row="3" column="0"> 
     
    261308             </item> 
    262309             <item row="3" column="1"> 
    263               <widget class="QLineEdit" name="xtol_newton"/> 
     310              <widget class="QLineEdit" name="xtol_newton"> 
     311               <property name="toolTip"> 
     312                <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Used to determine when the fit has reached the point where no significant improvement is expected.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
     313               </property> 
     314              </widget> 
    264315             </item> 
    265316            </layout> 
     
    297348             </item> 
    298349             <item row="0" column="1"> 
    299               <widget class="QLineEdit" name="steps_de"/> 
     350              <widget class="QLineEdit" name="steps_de"> 
     351               <property name="toolTip"> 
     352                <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;The number of iterations.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
     353               </property> 
     354              </widget> 
    300355             </item> 
    301356             <item row="1" column="0"> 
     
    317372             </item> 
    318373             <item row="2" column="1"> 
    319               <widget class="QLineEdit" name="CR_de"/> 
     374              <widget class="QLineEdit" name="CR_de"> 
     375               <property name="toolTip"> 
     376                <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;The size of the population.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
     377               </property> 
     378              </widget> 
    320379             </item> 
    321380             <item row="3" column="0"> 
     
    327386             </item> 
    328387             <item row="3" column="1"> 
    329               <widget class="QLineEdit" name="F_de"/> 
     388              <widget class="QLineEdit" name="F_de"> 
     389               <property name="toolTip"> 
     390                <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Determines how much to scale each difference vector before adding it to the candidate point.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
     391               </property> 
     392              </widget> 
    330393             </item> 
    331394             <item row="4" column="0"> 
     
    337400             </item> 
    338401             <item row="4" column="1"> 
    339               <widget class="QLineEdit" name="ftol_de"/> 
     402              <widget class="QLineEdit" name="ftol_de"> 
     403               <property name="toolTip"> 
     404                <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Used to determine when the fit has reached the point where no significant improvement is expected.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
     405               </property> 
     406              </widget> 
    340407             </item> 
    341408             <item row="5" column="0"> 
     
    347414             </item> 
    348415             <item row="5" column="1"> 
    349               <widget class="QLineEdit" name="xtol_de"/> 
     416              <widget class="QLineEdit" name="xtol_de"> 
     417               <property name="toolTip"> 
     418                <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Used to determine when the fit has reached the point where no significant improvement is expected.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
     419               </property> 
     420              </widget> 
    350421             </item> 
    351422            </layout> 
     
    383454             </item> 
    384455             <item row="0" column="1"> 
    385               <widget class="QLineEdit" name="steps_amoeba"/> 
     456              <widget class="QLineEdit" name="steps_amoeba"> 
     457               <property name="toolTip"> 
     458                <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;The number of simplex update iterations to perform.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
     459               </property> 
     460              </widget> 
    386461             </item> 
    387462             <item row="1" column="0"> 
     
    393468             </item> 
    394469             <item row="1" column="1"> 
    395               <widget class="QLineEdit" name="starts_amoeba"/> 
     470              <widget class="QLineEdit" name="starts_amoeba"> 
     471               <property name="toolTip"> 
     472                <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Tells the optimizer to restart a given number of times. Each time it restarts it uses a random starting point.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
     473               </property> 
     474              </widget> 
    396475             </item> 
    397476             <item row="2" column="0"> 
     
    403482             </item> 
    404483             <item row="2" column="1"> 
    405               <widget class="QLineEdit" name="radius_amoeba"/> 
     484              <widget class="QLineEdit" name="radius_amoeba"> 
     485               <property name="toolTip"> 
     486                <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;The initial size of the simplex, as a portion of the bounds defining the parameter space.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
     487               </property> 
     488              </widget> 
    406489             </item> 
    407490             <item row="3" column="0"> 
     
    413496             </item> 
    414497             <item row="3" column="1"> 
    415               <widget class="QLineEdit" name="ftol_amoeba"/> 
     498              <widget class="QLineEdit" name="ftol_amoeba"> 
     499               <property name="toolTip"> 
     500                <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Used to determine when the fit has reached the point where no significant improvement is expected. &lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
     501               </property> 
     502              </widget> 
    416503             </item> 
    417504             <item row="4" column="0"> 
     
    423510             </item> 
    424511             <item row="4" column="1"> 
    425               <widget class="QLineEdit" name="xtol_amoeba"/> 
     512              <widget class="QLineEdit" name="xtol_amoeba"> 
     513               <property name="toolTip"> 
     514                <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Used to determine when the fit has reached the point where no significant improvement is expected. &lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
     515               </property> 
     516              </widget> 
    426517             </item> 
    427518            </layout> 
  • src/sas/qtgui/Perspectives/Fitting/UnitTesting/FittingOptionsTest.py

    r72f4834 r85487ebd  
    3333        self.assertIsInstance(self.widget, QtGui.QDialog) 
    3434        # Default title 
    35         self.assertEqual(self.widget.windowTitle(), "Fitting Options") 
     35        self.assertEqual(self.widget.windowTitle(), "Fit Algorithms") 
    3636 
    3737        # The combo box 
Note: See TracChangeset for help on using the changeset viewer.