Skip to content

Check for minimum Zarr version.#1960

Merged
jhamman merged 2 commits intopydata:masterfrom
kaipak:master
Mar 6, 2018
Merged

Check for minimum Zarr version.#1960
jhamman merged 2 commits intopydata:masterfrom
kaipak:master

Conversation

@kaipak
Copy link
Copy Markdown
Contributor

@kaipak kaipak commented Mar 3, 2018

Comment thread xarray/backends/zarr.py Outdated

if LooseVersion(zarr.__version__) < min_zarr:
raise NotImplementedError("Zarr version %s or greater is "
"required by xarray. See zarr "
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

W291 trailing whitespace

Copy link
Copy Markdown
Member

@shoyer shoyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small suggestion, otherwise this looks great!

Comment thread xarray/backends/zarr.py Outdated
import zarr
min_zarr = '2.2'

if LooseVersion(zarr.__version__) < min_zarr:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add # pragma: no cover to indicate that this clause shouldn't be included in coverage calculations?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure thing, hope I did it right!

Comment thread xarray/backends/zarr.py Outdated
import zarr
min_zarr = '2.2'

if LooseVersion(zarr.__version__) < min_zarr: # pragma: no cover
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E261 at least two spaces before inline comment

@jhamman jhamman merged commit 55128aa into pydata:master Mar 6, 2018
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.

4 participants