Changeset 5a5e371 in sasview for src/sas/qtgui/Utilities


Ignore:
Timestamp:
Apr 18, 2018 3:13:18 PM (7 years ago)
Author:
krzywon
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:
917eba5
Parents:
ae34d30
Message:

Document batch p(r) and link to the anchor from the results window. Remove unicode characters from batch results table for saving purposes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Utilities/GridPanel.py

    rae34d30 r5a5e371  
    289289 
    290290        super(BatchInversionOutputPanel, self).__init__(parent, output_data) 
     291        _translate = QtCore.QCoreApplication.translate 
     292        self.setWindowTitle(_translate("GridPanelUI", "Batch P(r) Results")) 
    291293 
    292294    def setupTable(self, data): 
     
    296298        # headers 
    297299        param_list = ['Filename', 'Rg [à
    298 ]', 'χ^2/dof', 'I(Q=0)', 'Oscillations', 
     300]', 'Chi^2/dof', 'I(Q=0)', 'Oscillations', 
    299301                      'Background [à
    300 ^-1]', 'P+ Fraction', 'P+1-σ Fraction', 
     302^-1]', 'P+ Fraction', 'P+1-theta Fraction', 
    301303                      'Calc. Time [sec]'] 
    302304 
     
    319321            self.tblParams.setItem(i_row, 0, QtWidgets.QTableWidgetItem( 
    320322                "{}".format(filename))) 
     323            self.tblParams.setItem(i_row, 1, QtWidgets.QTableWidgetItem( 
     324                "{:.3g}".format(pr.rg(out)))) 
    321325            self.tblParams.setItem(i_row, 2, QtWidgets.QTableWidgetItem( 
    322326                "{:.3g}".format(pr.chi2[0]))) 
    323             self.tblParams.setItem(i_row, 5, QtWidgets.QTableWidgetItem( 
    324                 "{:.3g}".format(pr.background))) 
    325             self.tblParams.setItem(i_row, 8, QtWidgets.QTableWidgetItem( 
    326                 "{:.2g}".format(pr.elapsed))) 
    327             self.tblParams.setItem(i_row, 1, QtWidgets.QTableWidgetItem( 
    328                 "{:.3g}".format(pr.rg(out)))) 
    329327            self.tblParams.setItem(i_row, 3, QtWidgets.QTableWidgetItem( 
    330328                "{:.3g}".format(pr.iq0(out)))) 
    331329            self.tblParams.setItem(i_row, 4, QtWidgets.QTableWidgetItem( 
    332330                "{:.3g}".format(pr.oscillations(out)))) 
     331            self.tblParams.setItem(i_row, 5, QtWidgets.QTableWidgetItem( 
     332                "{:.3g}".format(pr.background))) 
    333333            self.tblParams.setItem(i_row, 6, QtWidgets.QTableWidgetItem( 
    334334                "{:.3g}".format(pr.get_positive(out)))) 
    335335            self.tblParams.setItem(i_row, 7, QtWidgets.QTableWidgetItem( 
    336336                "{:.3g}".format(pr.get_pos_err(out, cov)))) 
     337            self.tblParams.setItem(i_row, 8, QtWidgets.QTableWidgetItem( 
     338                "{:.2g}".format(pr.elapsed))) 
    337339 
    338340        self.tblParams.resizeColumnsToContents() 
     
    344346        """ 
    345347        location = GuiUtils.HELP_DIRECTORY_LOCATION 
    346         url = "/user/sasgui/perspectives/pr/pr_help.html#batch-fit-mode" 
     348        url = "/user/sasgui/perspectives/pr/pr_help.html#batch-pr-mode" 
    347349        try: 
    348350            webbrowser.open('file://' + os.path.realpath(location + url)) 
Note: See TracChangeset for help on using the changeset viewer.