Changeset 098f3d2 in sasview for src/sas/perspectives/fitting/fitting.py
- Timestamp:
- Jul 6, 2015 1:11:55 PM (9 years ago)
- 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, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- d3d67f0
- Parents:
- 9989a6a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/perspectives/fitting/fitting.py
re1442d4 r098f3d2 516 516 selected_data_list = [] 517 517 if self.batch_on: 518 page =self.add_fit_page(data=data_list)518 self.add_fit_page(data=data_list) 519 519 else: 520 520 if len(data_list) > MAX_NBR_DATA: … … 537 537 if group_id not in data.list_group_id: 538 538 data.list_group_id.append(group_id) 539 page =self.add_fit_page(data=[data])539 self.add_fit_page(data=[data]) 540 540 except: 541 msg = "Fitting Set_data: " + str(sys.exc_value)541 msg = "Fitting set_data: " + str(sys.exc_value) 542 542 wx.PostEvent(self.parent, StatusEvent(status=msg, info="error")) 543 543 … … 670 670 :param weight: current dy data 671 671 """ 672 # If we are not dealing with a specific fit problem, then 673 # there is no point setting the weights. 674 if fid is None: 675 return 672 676 if uid in self.page_finder.keys(): 673 677 self.page_finder[uid].set_weight(flag=flag, is2d=is2d)
Note: See TracChangeset
for help on using the changeset viewer.