Ignore:
Timestamp:
Nov 15, 2016 2:29:45 PM (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:
377c19a2
Parents:
600005c
Message:

#795: Orientation parameters returned by sasmodels are now handled properly.

File:
1 edited

Legend:

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

    r64c7f39 rb4fc0f9  
    15721572        if len(statelist) == 0 or len(listtorestore) == 0: 
    15731573            return 
    1574         if len(statelist) != len(listtorestore): 
    1575             return 
    15761574 
    15771575        ordered_list = [] 
     
    15811579                    ordered_list.append(param) 
    15821580                    break 
     1581        if len(ordered_list) != len(statelist): 
     1582            return 
    15831583        statelist = ordered_list 
    15841584 
    1585         for j in range(len(listtorestore)): 
     1585        for j in range(len(statelist)) if len(statelist) < len(listtorestore) \ 
     1586                else range(len(listtorestore)): 
    15861587            item_page = listtorestore[j] 
    15871588            item_page_info = statelist[j] 
     1589            if (item_page_info[1] == "theta" or item_page_info[1] == "phi") \ 
     1590                and not self._is_2D(): 
     1591                break 
    15881592            # change the state of the check box for simple parameters 
    15891593            if item_page[0] is not None: 
Note: See TracChangeset for help on using the changeset viewer.