Add normalisation of diffractograms (default: True=
This commit is contained in:
parent
06753ab6b2
commit
0fb8883d19
2 changed files with 9 additions and 1 deletions
|
|
@ -300,6 +300,10 @@ def read_data(data, options={}, index=0):
|
|||
diffractogram, wavelength = read_xy(data=data, options=options, index=index)
|
||||
|
||||
|
||||
if options['normalise']:
|
||||
diffractogram['I'] = diffractogram['I'] / diffractogram['I'].max()
|
||||
|
||||
|
||||
diffractogram = translate_wavelengths(data=diffractogram, wavelength=wavelength)
|
||||
|
||||
return diffractogram, wavelength
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue