Changeset 7afcae8 in sasview for fittingview/src
- Timestamp:
- Sep 12, 2011 10:56:53 AM (13 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:
- 33dd2e5
- Parents:
- 8aa5788
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fittingview/src/sans/perspectives/fitting/fitproblem.py
r8aa5788 r7afcae8 400 400 self.list_param = [] 401 401 ## smear object to smear or not data1D 402 self.smearer_compute _count = 0402 self.smearer_computed = False 403 403 self.smearer_enable = False 404 404 self.smearer_computer_value = None … … 432 432 if not self.smearer_enable: 433 433 return None 434 #if self.smearer_computer_value is None and \ 435 # self.smearer_compute_count > 1: 434 if not self.smearer_computed: 436 435 #smeari_selection should be call only once per fitproblem 437 self.smearer_computer_value = smear_selection(self.fit_data,436 self.smearer_computer_value = smear_selection(self.fit_data, 438 437 self.model) 439 self.smearer_compute_count += 1438 self.smearer_computed = True 440 439 return self.smearer_computer_value 441 440 … … 456 455 :param name: name created for model 457 456 """ 458 self.model= model 457 self.model = model 458 self.smearer_computer_value = smear_selection(self.fit_data, 459 self.model) 460 self.smearer_computed = True 459 461 460 462 def get_model(self): … … 487 489 """ 488 490 self.fit_data = copy.deepcopy(data) 491 self.smearer_computer_value = smear_selection(self.fit_data, 492 self.model) 493 self.smearer_computed = True 489 494 490 495 def get_fit_data(self):
Note: See TracChangeset
for help on using the changeset viewer.