Changeset 098f3d2 in sasview for src/sas/perspectives/fitting
- 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
- Location:
- src/sas/perspectives/fitting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/perspectives/fitting/fitpage.py
r60d08fd r098f3d2 2236 2236 """ 2237 2237 # compute weight for the current data 2238 from sas.perspectives.fitting.utils import get_weight2239 2238 flag_weight = self.get_weight_flag() 2240 2239 if is_2D == None: 2241 2240 is_2D = self._is_2D() 2242 weight = get_weight(data=self.data,2243 is2d=is_2D,2244 flag=flag_weight)2245 2241 self._manager.set_fit_weight(uid=self.uid, 2246 2242 flag=flag_weight, … … 2260 2256 self._update_paramv_on_fit() 2261 2257 2262 # msg default2263 msg = None2264 2258 if event != None: 2265 2259 tcrtl = event.GetEventObject() … … 2275 2269 # if any value is changed 2276 2270 if is_new_pinhole: 2277 msg =self._set_pinhole_smear()2271 self._set_pinhole_smear() 2278 2272 # hide all silt sizer 2279 2273 self._hide_all_smear_info() -
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.