Changeset d85f1d8a in sasview for src/sas/sasgui/perspectives/fitting/fitpage.py
- Timestamp:
- Mar 7, 2017 3:15:13 PM (8 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, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 096181d
- Parents:
- 7e98655
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/fitting/fitpage.py
r7e98655 rd85f1d8a 2309 2309 if len_data < 2: 2310 2310 len_data = 2 2311 self.dx_percent = float(get_pin_percent.GetValue()) / 1002311 self.dx_percent = float(get_pin_percent.GetValue()) 2312 2312 if self.dx_percent < 0: 2313 2313 get_pin_percent.SetBackgroundColour("pink") 2314 2314 msg = "Model Error:This value can not be negative!!!" 2315 2315 elif self.dx_percent is not None: 2316 percent = self.dx_percent/100 2316 2317 if self._is_2D(): 2317 data.dqx_data[data.dqx_data == 0] = \ 2318 self.dx_percent * data.qx_data 2319 data.dqy_data[data.dqy_data == 0] = \ 2320 self.dx_percent * data.qy_data 2318 data.dqx_data[data.dqx_data == 0] = percent * data.qx_data 2319 data.dqy_data[data.dqy_data == 0] = percent * data.qy_data 2321 2320 else: 2322 data.dx = self.dx_percent * data.x2321 data.dx = percent * data.x 2323 2322 self.current_smearer = smear_selection(data, self.model) 2324 2323 # 2D need to set accuracy
Note: See TracChangeset
for help on using the changeset viewer.