This PR contain changes that are necessary for PyXRF to work with distributed >= 2019.7.0. No officially supported method to clear Dask cache was found, but Dask tends to release resources and close open files if it is fed with additional small dummy task. HDF5 file needs to be opened with mode='r' to work with Dask arrays and it needs to be closed before it could be opened with mode='a' for writing the result.
This PR contain changes that are necessary for PyXRF to work with
distributed
>= 2019.7.0. No officially supported method to clear Dask cache was found, but Dask tends to release resources and close open files if it is fed with additional smalldummy
task. HDF5 file needs to be opened withmode='r'
to work with Dask arrays and it needs to be closed before it could be opened withmode='a'
for writing the result.