Changeset 05325ec4 in sasview for fittingview/src
- Timestamp:
- Sep 13, 2011 6:23:59 PM (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:
- ca2bdae
- Parents:
- e16e5c3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fittingview/src/sans/perspectives/fitting/fitproblem.py
r7afcae8 r05325ec4 392 392 self.fit_data = None 393 393 self.theory_data = None 394 # original data: should not be modified 395 self.original_data = None 394 396 ## the current model 395 397 self.model = None … … 488 490 :param data: list of data selected 489 491 """ 492 # original data: should not be modified 493 self.original_data = copy.deepcopy(data) 494 # fit data: used for fit and can be modified for convenience 490 495 self.fit_data = copy.deepcopy(data) 491 496 self.smearer_computer_value = smear_selection(self.fit_data, … … 506 511 """ 507 512 from .utils import get_weight 508 self.weight = get_weight(data=self.fit_data, is2d=is2d, flag=flag) 513 # send original data for weighting 514 self.weight = get_weight(data=self.original_data, is2d=is2d, flag=flag) 509 515 if is2d: 510 516 self.fit_data.err_data = self.weight
Note: See TracChangeset
for help on using the changeset viewer.