Commit 0b56afdb authored by payno's avatar payno

[core][pymca][exafs] check if NormalizedBackground is not None

parent db2451d8
......@@ -71,7 +71,7 @@ def process_spectr_exafs(spectrum, configuration, overwrite=True, callbacks=None
assert 'NormalizedBackground' in spectrum
if 'NormalizedBackground' not in spectrum:
if 'NormalizedBackground' not in spectrum or spectrum['NormalizedBackground'] is None:
_logger.warning('spectrum has not been normalized, will not process exafs')
return None, None
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment