silx_get_data: default scheme
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 298, in run
with self._worker() as (worker, config):
File "/users/blissadm/conda/miniconda/envs/ewoksworker/lib/python3.8/contextlib.py", line 113, in __enter__
return next(self.gen)
File "/home/blissadm/local/ewoks/ewoksxrpd/src/ewoksxrpd/tasks/integrate.py", line 33, in _worker
options = self._get_pyfai_options()
File "/home/blissadm/local/ewoks/ewoksxrpd/src/ewoksxrpd/tasks/integrate.py", line 51, in _get_pyfai_options
config["mask"] = self.get_image(
File "/home/blissadm/local/ewoks/ewoksxrpd/src/ewoksxrpd/tasks/data_access.py", line 47, in get_image
return bliss.get_image(*args, **kw)
File "/users/blissadm/conda/miniconda/envs/ewoksworker/lib/python3.8/site-packages/ewoksdata/data/bliss.py", line 41, in get_image
data = get_data(*args, **kwargs)
File "/users/blissadm/conda/miniconda/envs/ewoksworker/lib/python3.8/site-packages/ewoksdata/data/bliss.py", line 33, in get_data
return silx_get_data(data)
File "/users/blissadm/conda/miniconda/envs/ewoksworker/lib/python3.8/site-packages/silx/io/utils.py", line 935, in get_data
raise ValueError("Scheme '%s' not supported" % url.scheme())
ValueError: Scheme 'None' not supported
This is caused by providing a URL without scheme. So instead of this:
"mask_file": "/data/id11/inhouse1/ewoks/detectors/frelon6/mask_01052023.edf"
you need this:
"mask_file": "fabio:///data/id11/inhouse1/ewoks/detectors/frelon6/mask_01052023.edf"
Proposal: take "silx://" as the default for .h5 and "fabio://" for all other extensions.
Edited by Wout De Nolf