-
Notifications
You must be signed in to change notification settings - Fork 324
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
Replace invalid symbols in the labels for metadata visualization #1670
Merged
Merged
Changes from 1 commit
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
3f5c327
Replace < and >
fealho 0f2317e
Change replace to escape
fealho 4a761d0
Revert previous commit, escape doesnt work
fealho 82fda11
Fix lint
fealho 7d2a2a5
Update symbol replacement
fealho c1280ac
Fix lint
fealho 1d40139
Add tests
fealho cc8951f
Update tests
fealho 8e8a6e6
Fix lint
fealho File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
have you tried using https://graphviz.readthedocs.io/en/stable/api.html#graphviz.nohtml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it doesn't address the problem.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. It seems like it works if you replace '>' with '\>'. Then in the output graph the label looks correct
![Screenshot 2023-11-08 at 9 51 51 PM](https://private-user-images.githubusercontent.com/7800528/281610149-0a4d7650-9af0-4a1f-bae8-5ce5b54c1583.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNjA1NzAsIm5iZiI6MTczOTE2MDI3MCwicGF0aCI6Ii83ODAwNTI4LzI4MTYxMDE0OS0wYTRkNzY1MC05YWYwLTRhMWYtYmFlOC01Y2U1YjU0YzE1ODMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTBUMDQwNDMwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NmQxNGUyNGUwMzJiZjU0YWRkMjkwYjIyN2Q1ZmI5NGRlZTAzYzMwMGM4YWNhM2I1YzNjYTgwODMxNGU0ODNmYiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.R1QCjNKXD6hgj7R2gtbRt3uu3avWy-uecMNZDubAObE)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a note, this approach removes the backslash from the column name. So if a column has
\<
in it, the output will be<
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that's ok since prior to this change if they had '\>' in a label, it would only show '>' anyway.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
About this, can we add an integration test where we fit and sample a
synthesizer
after thevisualize()
to ensure we're not breaking themetadata validation
or thefit
andsample
with the change