Ignore:
Timestamp:
Mar 7, 2017 3:47:21 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:
d5aff7f
Parents:
d85f1d8a
Message:

Coerce old custom pinhole smeared loaded from save states to q_min/dq_min. #850

File:
1 edited

Legend:

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

    rd85f1d8a r096181d  
    12471247            self.dx_percent = state.dx_percent 
    12481248            if self.dx_percent is not None: 
    1249                 self.smear_pinhole_percent.SetValue(str(self.dx_percent)) 
     1249                if state.dx_old: 
     1250                    self.dx_percent = self.data.x[0] / self.dx_percent 
     1251                self.smear_pinhole_percent.SetValue("%.2f" % self.dx_percent) 
    12501252            self.onPinholeSmear(event=None) 
    12511253        elif self.slit_smearer.GetValue(): 
Note: See TracChangeset for help on using the changeset viewer.