Skip to content

Fix XRPD Flint plotting failure: remove URL scheme

Wout De Nolf requested to merge fix_url into main

Not everything can handle URL's with a scheme and ewoksxrpd uses this which does not need a scheme

>>> from silx.io.url import DataUrl
>>> DataUrl("silx:///tmp/data.h5::/test")
DataUrl(valid=True, scheme='silx', file_path='/tmp/data.h5', data_path='/test', data_slice=None)
>>> DataUrl("/tmp/data.h5::/test")
DataUrl(valid=True, scheme=None, file_path='/tmp/data.h5', data_path='/test', data_slice=None)

For now I decided to remove the scheme and deploy the fix.

@pautran @loic.huder @edgar If you think a better fix is needed, we can discuss it.

Edited by Wout De Nolf

Merge request reports

Loading