Changeset 4d5fa8c in sasview for sansview/perspectives/fitting/fitting.py
- Timestamp:
- May 24, 2010 11:14:52 AM (14 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:
- 11a7e11
- Parents:
- 75a8723
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/fitting.py
r75a8723 r4d5fa8c 1332 1332 if index == None: index = numpy.ones(len(data.y),ntype=bool) 1333 1333 if data.dy== None or data.dy ==[]: 1334 d ata.dy= numpy.ones(len(data.y))1334 dy = numpy.ones(len(data.y)) 1335 1335 else: 1336 data.dy[data.dy==0]=1 ## Set consitently w/AbstractFitengine: But this should be corrected later. 1336 ## Set consitently w/AbstractFitengine: But this should be corrected later. 1337 dy = data.dy 1338 dy[dy==0] = 1 1337 1339 fn = data.y[index] 1338 1340 gn = self.theory_data.y 1339 en = d ata.dy[index]1341 en = dy[index] 1340 1342 1341 1343 # residual
Note: See TracChangeset
for help on using the changeset viewer.