Changeset 0be6b6b in sasview for src/sas/sasgui/perspectives


Ignore:
Timestamp:
Oct 28, 2017 5:13:30 PM (7 years ago)
Author:
gonzalezm
Branches:
master, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
ee6ab94, 1c206d9
Parents:
9d819e2
Message:

Fix tuple problem with spherical_sld

Location:
src/sas/sasgui/perspectives/fitting
Files:
2 edited

Legend:

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

    r3bd677b r0be6b6b  
    34153415                        if item[2].__class__.__name__ == "ComboBox": 
    34163416                            if value[0] in self.model.fun_list: 
    3417                                 fun_val = self.model.fun_list[value[0]] 
    3418                                 self.model.setParam(name, fun_val) 
     3417                                self.model.setParam(name, 0) 
    34193418                                # save state 
    34203419                        try: 
  • src/sas/sasgui/perspectives/fitting/fitpage.py

    r3bd677b r0be6b6b  
    17331733        ind = 0 
    17341734        while(ind < len(list)): 
    1735             for key, val in list.items(): 
    1736                 if val == ind: 
    1737                     fun_box.Append(key, val) 
    1738                     break 
     1735            fun_box.Append(list[ind])         
    17391736            ind += 1 
    17401737 
     
    17651762        value = fun_box.GetValue() 
    17661763        if value in self.model.fun_list: 
    1767             fun_val = self.model.fun_list[value] 
     1764            fun_val = fun_box.GetSelection() 
    17681765 
    17691766        self.model.setParam(name, fun_val) 
Note: See TracChangeset for help on using the changeset viewer.