Skip to content

Add explicit h5py.File mode#5390

Merged
jcrist merged 1 commit intodask:masterfrom
jrbourbeau:h5py-file-mode
Sep 10, 2019
Merged

Add explicit h5py.File mode#5390
jcrist merged 1 commit intodask:masterfrom
jrbourbeau:h5py-file-mode

Conversation

@jrbourbeau
Copy link
Copy Markdown
Member

@jrbourbeau jrbourbeau commented Sep 10, 2019

The new 2.10 release of h5py raises a depreciation warning when no mode is specified when using h5py.File. This warning is causing our CI to fail (e.g. https://travis-ci.org/dask/dask/jobs/583263475).

This PR specifies the mode= parameter throughout the codebase. In particular, it specifies mode="a" in to_hdf5, which is the current default in h5py.

  • Tests added / passed
  • Passes black dask / flake8 dask

@jrbourbeau
Copy link
Copy Markdown
Member Author

cc @jcrist

@jcrist
Copy link
Copy Markdown
Member

jcrist commented Sep 10, 2019

Seems sane to me. Thanks @jrbourbeau!

@jcrist jcrist merged commit 548ede5 into dask:master Sep 10, 2019
@jrbourbeau jrbourbeau deleted the h5py-file-mode branch September 10, 2019 21:44
@jrbourbeau
Copy link
Copy Markdown
Member Author

Thanks for reviewing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants