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

🐛 lookup(return_field="name") throws error if multiple values exist #2282

Open
falexwolf opened this issue Dec 16, 2024 · 0 comments
Open
Assignees
Labels

Comments

@falexwolf
Copy link
Member

falexwolf commented Dec 16, 2024

image

Background: I want to write this slicing operator:

value_filter = (
    f'cytokine_name == "{proteins.interferon_gamma.name}" and cell_type_author in'
    f' ["{cell_types.t_cell.name}", "{cell_types.natural_killer_cell.name}"]'
)
value_filter

But I can't because proteins.interferon_gamma returns a list where each element has the same name.

image
@falexwolf falexwolf changed the title Lookup by name is problematic for queries when multiple records for the same name exist 🐛 lookup(return_field="name") throws error if multiple values exist Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants