Changeset d6e38661 in sasview for src/sas/qtgui/Perspectives


Ignore:
Timestamp:
Apr 5, 2018 8:32:38 AM (7 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:
ded5e77, 01ef3f7
Parents:
bb57068
Message:

Fixed naming of datasets for both theory and file data

Location:
src/sas/qtgui/Perspectives/Fitting
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Perspectives/Fitting/FittingLogic.py

    • Property mode changed from 100755 to 100644
    rb3e8629 rd6e38661  
    126126 
    127127        new_plot.group_id = data.group_id 
    128         new_plot.id = str(tab_id) + " " + data.name 
    129         new_plot.name = model.name + " [" + data.name + "]" 
     128        new_plot.id = str(tab_id) + " " + model.id 
     129 
     130        if data.filename: 
     131            new_plot.name = model.name + " [" + data.filename + "]" # data file 
     132        else: 
     133            new_plot.name = model.name + " [" + model.id + "]"  # theory 
     134 
    130135        new_plot.title = new_plot.name 
    131136        new_plot.xaxis(_xaxis, _xunit) 
  • src/sas/qtgui/Perspectives/Fitting/FittingWidget.py

    r8b480d27 rd6e38661  
    19571957            self.updateModelIndex(fitted_data) 
    19581958        else: 
    1959             name = self.nameForFittedData(self.kernel_module.name) 
     1959            name = self.nameForFittedData(self.kernel_module.id) 
    19601960            fitted_data.title = name 
    19611961            fitted_data.name = name 
Note: See TracChangeset for help on using the changeset viewer.