NSLS-II / PyXRF

Fluorescence fitting GUI.
http://nsls-ii.github.io/PyXRF
BSD 3-Clause "New" or "Revised" License
31 stars 23 forks source link

Fix for the issue of compatibility with Dask `distributed` >= 2019.7.0 #257

Closed dmgav closed 2 years ago

dmgav commented 2 years ago

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.

mrakitin commented 2 years ago

Cool!