Allow different multiplication factor for each scan
This commit is contained in:
parent
1fc003c755
commit
7dfc0444f0
1 changed files with 5 additions and 1 deletions
|
|
@ -759,7 +759,11 @@ def adjust_intensities(diffractogram, wavelength, index, options):
|
|||
|
||||
if options['normalise']:
|
||||
diffractogram['I'] = diffractogram['I'] / diffractogram['I'].max()
|
||||
diffractogram['I'] = diffractogram['I'] * options['multiply']
|
||||
|
||||
if not isinstance(options['multiply'], list):
|
||||
options['multiply'] = [options['multiply']]
|
||||
|
||||
diffractogram['I'] = diffractogram['I'] * options['multiply'][index]
|
||||
|
||||
if options['drawdown']:
|
||||
diffractogram['I'] = diffractogram['I'] - diffractogram['I'].mean()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue