Changeset 02f1d12 in sasview


Ignore:
Timestamp:
Oct 25, 2017 9:16:22 AM (7 years ago)
Author:
Tim Snow <tim.snow@…>
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:
e00b76e, e4ebcb9
Parents:
f7d14a1
Message:

Magnetism fixes

Made the magnetism parameters editable along with setting the correct parameters for these to be pushed to the calculations.

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

Legend:

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

    rf7d14a1 r02f1d12  
    644644            return 
    645645 
    646         property_index = self._magnet_model.headerData(1, model_column).toInt()[0]-1 # Value, min, max, etc. 
     646        # p_i = self._magnet_model.headerData(0,1,2,3,4,5,6,7,8,9,10) 
     647        property_index = self._magnet_model.headerData(0, 1, model_column).toInt()[0]-1 # Value, min, max, etc. 
    647648 
    648649        # Update the parameter value - note: this supports +/-inf as well 
  • src/sas/qtgui/Perspectives/Fitting/ViewDelegate.py

    r7ffa5ee9 r02f1d12  
    219219 
    220220    def editableParameters(self): 
    221         return [self.mag_min, self.mag_max] 
     221        return [self.mag_value, self.mag_min, self.mag_max] 
    222222 
    223223    def addErrorColumn(self): 
Note: See TracChangeset for help on using the changeset viewer.