Skip to content
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

Simplified DynamicMap reindex as it is handled automatically #1267

Merged
merged 2 commits into from
Apr 11, 2017

Conversation

philippjfr
Copy link
Member

The new Callable inspection in _execute_callback now automatically remaps key dimensions onto the callback so wrapping the callable is no longer needed.

@philippjfr
Copy link
Member Author

I also added made sure that any clone of a DynamicMap references the original DynamicMap in its Callable.inputs, ensuring that the original source is inherited.

# Ensure the clone references this object to ensure
# stream sources are inherited
if clone.callback is self.callback:
clone.callback = self.callback.clone()
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't quite get this line. Why would self.callback have a clone method? Isn't that a Callable around the callback?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, see above I gave it a clone method. Can do it manually here I suppose and remove it again. Up to you.

Copy link
Contributor

Choose a reason for hiding this comment

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

It is at the top of the diff and I must have just skimmed over clone without registering it. Thanks for clarifying!

@jlstevens
Copy link
Contributor

Other than one bit I don't understand it looks fine and I'll merge once the tests pass.

@philippjfr
Copy link
Member Author

Needs a bunch of tests too, so not quite ready yet.

@philippjfr
Copy link
Member Author

Let's get this merged now since tests are failing on master holding up other PRs. I'll add tests later.

@jlstevens
Copy link
Contributor

Agreed. Merging now.

@jlstevens jlstevens merged commit 8153e45 into master Apr 11, 2017
@philippjfr philippjfr deleted the dynamic_reindex_fix branch April 11, 2017 12:30
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 25, 2024
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.

2 participants