Skip to content

MultiContext#487

Open
SmartMonkey-git wants to merge 8 commits into
mainfrom
rr/mulit-context
Open

MultiContext#487
SmartMonkey-git wants to merge 8 commits into
mainfrom
rr/mulit-context

Conversation

@SmartMonkey-git

@SmartMonkey-git SmartMonkey-git commented May 21, 2026

Copy link
Copy Markdown
Collaborator

Introducing MultiContext to give a column multiple contexts at once. I removed the HpoAndDisease Context. Will need this shortly.

The HashableSet got introduced, because using a simple HashSet as the value for the multi context would lead to infinite recursion, where a HashSet gets Hashed until your CPU dies.

@SmartMonkey-git SmartMonkey-git self-assigned this May 21, 2026
let hpo_or_disease_col_names = table
.filter_columns()
.where_data_context_kind(Filter::Is(&ContextKind::HpoOrDisease))
.where_data_context_kind(Filter::Is(&ContextKind::MultiContext))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

don't we need to filter based on where_data_context instead of data_context_kind?

This code will cause problems if there are other MultiContext columns in the CDF

.is_empty()
let series_contexts = table
.filter_series_context()
.where_data_context_kind(Filter::Is(&ContextKind::MultiContext))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

same here, why not use where_data_context?

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.

2 participants