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

Implement Data.update_from_data #1112

Merged
merged 5 commits into from
Aug 29, 2016
Merged

Conversation

astrofrog
Copy link
Member

This allows a dataset to be updated to match another dataset - importantly, it preserves component IDs for components that have matching labels. This can be used for example for refreshing a dataset where the number of elements has changed.

This takes another dataset and matches components based on labels. Components no longer in the new dataset are removed, components in both datasets have their numerical values updated, and components only in the new data are added.
@astrofrog astrofrog changed the title WIP: Implement Data.update_from_data Implement Data.update_from_data Aug 27, 2016
@astrofrog astrofrog merged commit 0a0e65b into glue-viz:master Aug 29, 2016
@astrofrog
Copy link
Member Author

@gahjelle - this is now merged, but note that I renamed the method to update_values_from_data, so be sure to update your plugin.

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

Successfully merging this pull request may close these issues.

1 participant