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

Initialize all trace metadata IDs #62

Merged
merged 1 commit into from
May 10, 2024
Merged

Conversation

Carifio24
Copy link
Member

This PR updates the viewer layer artists to initialize all of the fields used for trace UUIDs when the layer artist is created. Currently these values are left as None until the relevant trace type is created. This causes a problem for any tools that create traces on the figure that don't have a meta field set: trace-getting methods such as e.g. _get_lines in the scatter layer artist can then pick up these traces in their results if _lines_id is still None. While all of the traces in glue-plotly have use the meta field of the trace, it's obviously better to make things more robust here rather than demand that any possible tool obey the same pattern.

…up other traces (like those added by tools).
@Carifio24 Carifio24 added bug Something isn't working viewers labels May 10, 2024
@Carifio24 Carifio24 merged commit 0f8f7e5 into glue-viz:main May 10, 2024
31 of 33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working viewers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant