Changeset be36447 in sasview for src/sas/sascalc/data_util/qsmearing.py
- Timestamp:
- Feb 27, 2017 9:58:22 AM (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:
- 27ba79c
- Parents:
- cb05bfd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sascalc/data_util/qsmearing.py
rd3911e3 rbe36447 108 108 q_calc = self.resolution.q_calc 109 109 iq_calc = numpy.empty_like(q_calc) 110 if start > 0 :110 if start > 0 and self.model is not None: 111 111 iq_calc[:start] = self.model.evalDistribution(q_calc[:start]) 112 if end+1 < len(q_calc) :112 if end+1 < len(q_calc) and self.model is not None: 113 113 iq_calc[end+1:] = self.model.evalDistribution(q_calc[end+1:]) 114 114 iq_calc[start:end+1] = iq_in[first_bin:last_bin+1]
Note: See TracChangeset
for help on using the changeset viewer.