Normalization bug
Traceback (most recent call last):
File "/users/blissadm/conda/miniconda/envs/ewoksworker/lib/python3.8/site-packages/ewokscore/task.py", line 337, in execute
self.run()
File "/home/blissadm/local/ewoks/ewoksxrpd/src/ewoksxrpd/tasks/integrate.py", line 334, in run
result = worker.process(
File "/users/blissadm/conda/miniconda/envs/ewoksworker/lib/python3.8/site-packages/pyFAI/worker.py", line 343, in process
monitor = self._normalization_factor * normalization_factor if self._normalization_factor else normalization_factor
TypeError: unsupported operand type(s) for *: 'float' and 'NoneType'
-
self._normalization_factor
: comes from theintegration_options["normalization_factor"]
-
normalization_factor
: comes fromintegrate_utils.get_normalization(...)
If both are provided, you get the product. Which means if integration_options["normalization_factor"]
and integrate_utils.get_normalization(...)
returns None
, you get the exception above.
See also: https://github.com/silx-kit/pyFAI/blob/c22ef8703b36fc12dc6dba3f0f598038cd08c3c0/pyFAI/worker.py#L332