Changeset c66a0bb in sasview for src/sas/sasgui/perspectives/fitting
- Timestamp:
- Nov 30, 2017 10:51:13 AM (7 years ago)
- 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:
- 0a9cbc3
- Parents:
- ee6ab94 (diff), 882cfec (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - git-author:
- Paul Kienzle <pkienzle@…> (11/30/17 10:51:13)
- git-committer:
- GitHub <noreply@…> (11/30/17 10:51:13)
- Location:
- src/sas/sasgui/perspectives/fitting
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/fitting/fitpage.py
r0be6b6b r3bd677b 1733 1733 ind = 0 1734 1734 while(ind < len(list)): 1735 fun_box.Append(list[ind]) 1735 for key, val in list.items(): 1736 if val == ind: 1737 fun_box.Append(key, val) 1738 break 1736 1739 ind += 1 1737 1740 … … 1762 1765 value = fun_box.GetValue() 1763 1766 if value in self.model.fun_list: 1764 fun_val = fun_box.GetSelection()1767 fun_val = self.model.fun_list[value] 1765 1768 1766 1769 self.model.setParam(name, fun_val) -
src/sas/sasgui/perspectives/fitting/fitproblem.py
r251ef684 r20fa5fe 1 1 """ 2 2 Inferface containing information to store data, model, range of data, etc... 3 and retr eive this information. This is an inferface3 and retrieve this information. This is an inferface 4 4 for a fitProblem i.e relationship between data and model. 5 5 """ … … 56 56 """ 57 57 :param flag: bool.When flag is 1 get the computer smear value. When 58 flag is 0 i ngore smear value.58 flag is 0 ignore smear value. 59 59 """ 60 60 self.smearer_enable = flag … … 305 305 """ 306 306 :param flag: bool.When flag is 1 get the computer smear value. When 307 flag is 0 i ngore smear value.307 flag is 0 ignore smear value. 308 308 """ 309 309 self._smear_on = flag -
src/sas/sasgui/perspectives/fitting/fitting.py
r9706d88 r20fa5fe 763 763 the current page and set value. 764 764 :param value: integer 0 or 1 765 :param uid: the id related to a page conta ning fitting information765 :param uid: the id related to a page containing fitting information 766 766 """ 767 767 if uid in self.page_finder.keys(): … … 778 778 Used by simfitpage.py to reset a parameter given the string constrainst. 779 779 780 :param modelname: the name o tthe model for with the parameter780 :param modelname: the name of the model for with the parameter 781 781 has to reset 782 782 :param value: can be a string in this case. 783 :param names: the param ter name783 :param names: the parameter name 784 784 """ 785 785 sim_page_id = self.sim_page.uid … … 797 797 name into model name and parameter name example: :: 798 798 799 param aterset (item) = M1.A799 parameterset (item) = M1.A 800 800 Will return model_name = M1 , parameter name = A 801 801 … … 1117 1117 def store_data(self, uid, data_list=None, caption=None): 1118 1118 """ 1119 Rec ieve a list of data and store them ans well as a caption of1119 Receive a list of data and store them ans well as a caption of 1120 1120 the fit page where they come from. 1121 1121 :param uid: if related to a fit page … … 1196 1196 for a given interactor. 1197 1197 1198 :param event: contains type of slicer , param aters for updating1198 :param event: contains type of slicer , parameters for updating 1199 1199 the panel and panel_name to find the slicer 's panel concerned. 1200 1200 """ -
src/sas/sasgui/perspectives/fitting/fitting_widgets.py
r959eb01 r20fa5fe 64 64 selection_sizer.Add(self.data_2d_selected, (iy, ix), 65 65 (1, 1), wx.LEFT | wx.EXPAND | wx.ADJUST_MINSIZE, 15) 66 #contruction the sizer conta ning button66 #contruction the sizer containing button 67 67 button_sizer.Add((20, 20), 1, wx.EXPAND | wx.ADJUST_MINSIZE, 0) 68 68 button_sizer.Add(button_cancel, 0, -
src/sas/sasgui/perspectives/fitting/gpu_options.py
r3bd677b r20fa5fe 88 88 self.option_button = {} 89 89 self.buttons = [] 90 #Check if SAS_OPENCL is already set as enviro mentalvariable90 #Check if SAS_OPENCL is already set as environment variable 91 91 self.sas_opencl = os.environ.get("SAS_OPENCL", "") 92 92 -
src/sas/sasgui/perspectives/fitting/media/fitting.rst
r3bd677b rc926a97 18 18 19 19 Polarisation/Magnetic Scattering <magnetism/magnetism> 20 21 Oriented Particles <orientation/orientation> 20 22 21 23 Information on the SasView Optimisers <optimizer> -
src/sas/sasgui/perspectives/fitting/simfitpage.py
r0a3c740 r20fa5fe 976 976 param_cbox = self.constraints_list[-1].param_cbox 977 977 param_cbox.Clear() 978 # insert only fittable param aters978 # insert only fittable parameters 979 979 for param in param_list: 980 980 param_cbox.Append(str(param), model) -
src/sas/sasgui/perspectives/fitting/basepage.py
r3bd677b ree6ab94 1643 1643 if item_page[2].__class__.__name__ == "ComboBox": 1644 1644 if item_page_info[2] in self.model.fun_list: 1645 fun_val = self.model.fun_list[item_page_info[2]] 1645 # to fix: fun_list is not a dictionary, but a tuple 1646 # so the following line (commented) will fail 1647 # fun_val = self.model.fun_list[item_page_info[2]] 1648 # I guess the following should work, but 1649 # could not test as I don't know when this 1650 # part is used by SasView. 1651 fun_val = self.model.fun_list.index(item_page_info[2]) 1646 1652 self.model.setParam(item_page_info[1], fun_val) 1647 1653 if item_page[3] is not None: … … 1687 1693 selection = value 1688 1694 if value in self.model.fun_list: 1689 selection = self.model.fun_list[value] 1695 # to fix: fun_list is not a dictionary, so 1696 # I commented the following original line 1697 #selection = self.model.fun_list[value] 1698 # and replaced by this. 1699 # I think this should work, but could not test it. 1700 selection = self.model.fun_list.index(value) 1690 1701 item_page[2].SetValue(selection) 1691 1702 self.model.setParam(param_name, selection) … … 3365 3376 if item[2].__class__.__name__ == "ComboBox": 3366 3377 if content[name][1] in self.model.fun_list: 3367 fun_val = self.model.fun_list[content[name][1]] 3378 # to fix: fun_list is not a dictionary, but a tuple 3379 # so the following line (commented) will fail 3380 # fun_val = self.model.fun_list[content[name][1]] 3381 # I guess the following should work, but 3382 # could not test as I don't know when this 3383 # part is used by SasView. 3384 fun_val = self.model.fun_list.index(content[name][1]) 3368 3385 self.model.setParam(name, fun_val) 3369 3386 try: … … 3415 3432 if item[2].__class__.__name__ == "ComboBox": 3416 3433 if value[0] in self.model.fun_list: 3417 fun_val = self.model.fun_list[value[0]] 3434 # Fixed: fun_list not a dictionary! 3435 # Arrives here when spherical_sld model is 3436 # selected and number of shells modified. 3437 fun_val = self.model.fun_list.index(value[0]) 3418 3438 self.model.setParam(name, fun_val) 3419 3439 # save state
Note: See TracChangeset
for help on using the changeset viewer.