-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Disable lock=True in open_mfdataset when reading netCDF3 files #824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@shoyer, is this related to #800? If I recall correctly based on #793 there may be some issues with dask/multithreading without the lock. Am I missing something here? It may make sense to just to set |
The issues with multithreading without a lock come up only when using netCDF4/HDF5. With netCDF3, you don't need the lock when reading data. I don't like changing to |
@shoyer, makes sense. Are you thinking of something like the following pseudo code? if lock is None:
if type(file) is netCDF4/HDF5:
lock=True
else:
lock=False |
We could also just filter the other way too which is probably cleaner: if lock is None and type(file) is netCDF3:
lock=False |
In order to maintain a list of currently relevant issues, we mark issues as stale after a period of inactivity |
@shoyer - this was addressed in the backend refactor this summer, no? |
Yes it was |
This slows things down unnecessarily.
The text was updated successfully, but these errors were encountered: