Skip to content

Forward purelist_parameter "__doc__" in lazy slices #422

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

Merged
merged 1 commit into from
Aug 28, 2020

Conversation

nsmith-
Copy link
Member

@nsmith- nsmith- commented Aug 28, 2020

In addition to __record__ since both are queried in every highlevel array instantiation.
This is a follow-up to #390

In addition to "__record__" since both are queried in every highlevel
array instantiation.
@@ -615,13 +621,8 @@ namespace awkward {
ArrayGeneratorPtr generator = std::make_shared<SliceGenerator>(
form, carry.length(), shallow_copy(), slice);
ArrayCachePtr cache(nullptr);
util::Parameters params(parameters_);
Copy link
Member Author

Choose a reason for hiding this comment

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

There is one case where the parameters were copied from the parent VirtualArray. I decided it was a non-uniformity and dropped it. We could instead always copy the parameters if that makes more sense.

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'm good with this. You know better than I do which parameters should be forwarded in virtual arrays because you have experience with real cases that exhibit good or bad features.

The tests just passed; thumbs up here and I'll merge it.

@nsmith-
Copy link
Member Author

nsmith- commented Aug 28, 2020

Of course in the long run it will be better to have #402 but for now it is 👍

@jpivarski jpivarski merged commit 6764bd4 into scikit-hep:master Aug 28, 2020
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