Skip to content
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.

Writing LZ4 compressed ROOT files #288

Merged
merged 6 commits into from
Jun 11, 2019
Merged

Writing LZ4 compressed ROOT files #288

merged 6 commits into from
Jun 11, 2019

Conversation

reikdas
Copy link
Collaborator

@reikdas reikdas commented Jun 9, 2019

Fixes #279

@reikdas reikdas requested a review from jpivarski June 9, 2019 17:48
Copy link
Member

@jpivarski jpivarski left a comment

Choose a reason for hiding this comment

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

I've checked everything, including the xxhash installation message. It's great!

@jpivarski jpivarski merged commit bffeaea into master Jun 11, 2019
@jpivarski jpivarski deleted the lz4 branch June 11, 2019 19:24
@@ -143,7 +143,7 @@ def get_description():
test_suite = "tests",
install_requires = ["numpy>=1.13.1", "awkward>=0.10.0", "uproot-methods>=0.6.0", "cachetools"],
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't xxhash appear here rather than tests_require ?

Copy link
Member

Choose a reason for hiding this comment

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

For pip, which is determined by setup.py, lz4 and therefore xxhash are optional dependencies, though we want to test them. For conda, they're strict dependencies, and that's controlled by uproot-feedstock.

Copy link
Contributor

Choose a reason for hiding this comment

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

hmm, well then this import should be wrapped by a try: statement if it is optional. I encountered an error because I didn't have xxhash installed.

Copy link
Member

Choose a reason for hiding this comment

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

Yes, it absolutely must. @reikdas?

Copy link
Member

Choose a reason for hiding this comment

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

Actually, it should be inside of the function call, just like import lz4 is, and probably right after import lz4 to indicate the relationship. Although I think xxhash is used in a different function... anyway, it should be inside of a function so that it doesn't load on startup if you have it but don't use it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sorry, this was my mistake. I opened a PR fixing this. Also @jpivarski I have a draft release ready once you have merged it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Write LZ4 compressed files
3 participants