Changeset d18d6dd in sasmodels
- Timestamp:
- Mar 4, 2018 8:37:49 PM (7 years ago)
- Branches:
- master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 6cbdcd4
- Parents:
- f549e37
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/direct_model.py
r2d81cfe rd18d6dd 345 345 self._kernel = self._model.make_kernel(self._kernel_inputs) 346 346 347 # Need to pull background out of resolution for multiple scattering 348 background = pars.get('background', 0.) 349 pars = pars.copy() 350 pars['background'] = 0. 351 347 352 Iq_calc = call_kernel(self._kernel, pars, cutoff=cutoff) 348 353 # Storing the calculated Iq values so that they can be plotted. … … 357 362 np.reshape(Iq_calc, (self.resolution.ny, self.resolution.nx)) 358 363 ) 359 return result 364 return result + background 360 365 361 366
Note: See TracChangeset
for help on using the changeset viewer.