Changeset d5aff7f in sasview for src/sas


Ignore:
Timestamp:
Mar 8, 2017 9:03:25 AM (8 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:
984f3fc
Parents:
096181d
Message:

Small code cleanup to only fetch dx_min from save state a single time.

File:
1 edited

Legend:

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

    r096181d rd5aff7f  
    10461046                    setattr(self, item[0], parse_entry_helper(node, item)) 
    10471047 
     1048                dx_old_node = get_content('ns:%s' % 'dx_min', entry) 
    10481049                for item in LIST_OF_STATE_ATTRIBUTES: 
    1049                     node = get_content('ns:%s' % 'dx_min', entry) 
    1050                     if item[0] == "dx_percent" and node is not None: 
    1051                         dxmin = ["dx_min", "dx_percent", "float"] 
    1052                         setattr(self, item[0], parse_entry_helper(node, dxmin)) 
     1050                    if item[0] == "dx_percent" and dx_old_node is not None: 
     1051                        dxmin = ["dx_min", "dx_min", "float"] 
     1052                        setattr(self, item[0], parse_entry_helper(dx_old_node, 
     1053                                                                  dxmin)) 
    10531054                        self.dx_old = True 
    10541055                    else: 
Note: See TracChangeset for help on using the changeset viewer.