Closed davidorme closed 3 weeks ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 94.75%. Comparing base (
327ad85
) to head (5ff2268
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Description
This PR is to fix segfaults in testing and docs building when
xarray.open_mfdataset
is used. This is due to underlying issues with the netCDF code not being thread safe. We previously turned onlock=False
in that command, following advice here:https://github.com/pydata/xarray/issues/3961
And that worked, but the issue has started occurring again. Following the advice in this issue thread:
https://github.com/pydata/xarray/issues/7079
this PR now explicitly sets the
dask
scheduler to use single-threading.Fixes #354
Type of change
Key checklist
pre-commit
checks:$ pre-commit run -a
$ poetry run pytest
Further checks