Changeset 26500ec in sasview
- Timestamp:
- Mar 3, 2015 3:27:22 PM (10 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:
- e46cbc5
- Parents:
- 121f72c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/calculator/instrument.py
r6bd3a8d1 r26500ec 204 204 spectrum = self.spectrum 205 205 intensity = numpy.interp(self.wavelength, 206 207 208 209 206 spectrum[0], 207 spectrum[1], 208 0.0, 209 0.0) 210 210 self.set_intensity(intensity) 211 211 # min max range of the spectrum … … 245 245 validate(wavelength) 246 246 self.intensity = numpy.interp(self.wavelength, 247 self.spectrum[0],248 self.spectrum[1],249 0.0,250 0.0)247 self.spectrum[0], 248 self.spectrum[1], 249 0.0, 250 0.0) 251 251 252 252 def set_mass(self, mass=_MASS): … … 346 346 """ 347 347 out = numpy.interp(self.wavelength_list, 348 349 350 351 348 self.spectrum[0], 349 self.spectrum[1], 350 0.0, 351 0.0) 352 352 return out 353 353 … … 356 356 Get wavelength and wavelength_spread list 357 357 """ 358 return self.wavelength_list, self.wavelength spread_list358 return self.wavelength_list, self.wavelength_spread_list 359 359 360 360 def set_wave_list(self, wavelength=[]): … … 372 372 :param wavelength_spread: list of wavelength spreads 373 373 """ 374 self.wavelength spread_list = wavelength_spread374 self.wavelength_spread_list = wavelength_spread 375 375 376 376
Note: See TracChangeset
for help on using the changeset viewer.