Ignore:
Timestamp:
Mar 7, 2017 3:15:13 PM (7 years ago)
Author:
krzywon
Branches:
master, 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, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
096181d
Parents:
7e98655
Message:

Saving and then loading in same save state working with custom pinhole dQ as a percentage. #850

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/fitting/fitpage.py

    r7e98655 rd85f1d8a  
    23092309            if len_data < 2: 
    23102310                len_data = 2 
    2311             self.dx_percent = float(get_pin_percent.GetValue()) / 100 
     2311            self.dx_percent = float(get_pin_percent.GetValue()) 
    23122312            if self.dx_percent < 0: 
    23132313                get_pin_percent.SetBackgroundColour("pink") 
    23142314                msg = "Model Error:This value can not be negative!!!" 
    23152315            elif self.dx_percent is not None: 
     2316                percent = self.dx_percent/100 
    23162317                if self._is_2D(): 
    2317                     data.dqx_data[data.dqx_data == 0] = \ 
    2318                         self.dx_percent * data.qx_data 
    2319                     data.dqy_data[data.dqy_data == 0] = \ 
    2320                         self.dx_percent * data.qy_data 
     2318                    data.dqx_data[data.dqx_data == 0] = percent * data.qx_data 
     2319                    data.dqy_data[data.dqy_data == 0] = percent * data.qy_data 
    23212320                else: 
    2322                     data.dx = self.dx_percent * data.x 
     2321                    data.dx = percent * data.x 
    23232322            self.current_smearer = smear_selection(data, self.model) 
    23242323            # 2D need to set accuracy 
Note: See TracChangeset for help on using the changeset viewer.