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

fix: separate series subgraphs by index name #112

Merged
merged 1 commit into from
Jan 30, 2024

Conversation

jokasimr
Copy link
Contributor

@jokasimr jokasimr commented Jan 29, 2024

Fixes #104
Here's how the graph looks after the change:

Screenshot from 2024-01-29 13-06-04

I'm still a bit unsure what the correct behavior is here.
When should two Series[ ... ] nodes be collected in a subgraph?
Is it when all types inside [ ... ] are the same?

@SimonHeybrock
Copy link
Member

Fixes #104 Here's how the graph looks after the change:

Screenshot from 2024-01-29 13-06-04

I'm still a bit unsure what the correct behavior is here. When should two Series[ ... ] nodes be collected in a subgraph? Is it when all types inside [ ... ] are the same?

Yes, all must be the same.

return name.split('[')[0]
sgname = name.split('[')[0]
if sgname == 'Series':
return name.partition('[')[-1].partition(']')[0]
Copy link
Member

Choose a reason for hiding this comment

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

A comment would be useful here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've added a comment but I'm not sure it's clear and accurate. Do you have a better suggestion?

Copy link
Member

@SimonHeybrock SimonHeybrock Jan 30, 2024

Choose a reason for hiding this comment

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

My point was: It is unclear to a superficial reader what "name.partition('[')[-1].partition(']')[0]" does, can you maybe add an example of what it is parsing/partitioning, to explain this?

Copy link
Member

@SimonHeybrock SimonHeybrock Jan 30, 2024

Choose a reason for hiding this comment

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

Why of there are some nested [...], does this still work?

Copy link
Contributor Author

@jokasimr jokasimr Jan 30, 2024

Choose a reason for hiding this comment

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

No it doesn't :/ (fixed now)

@jokasimr jokasimr force-pushed the fix-series-in-same-subgraph branch from bdcae87 to 3b0ad13 Compare January 30, 2024 10:38
@jokasimr jokasimr merged commit 262fac7 into main Jan 30, 2024
5 checks passed
@jokasimr jokasimr deleted the fix-series-in-same-subgraph branch January 30, 2024 11:45
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.

Misleading graph visualization in groupings ops with param tables
2 participants