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

Fringe cases with duplicated metadata #45

Open
HugoHakem opened this issue Sep 12, 2024 · 0 comments
Open

Fringe cases with duplicated metadata #45

HugoHakem opened this issue Sep 12, 2024 · 0 comments
Assignees
Labels

Comments

@HugoHakem
Copy link
Collaborator

When using jump_portrait, this case fails, among other.

get_jump_image("source_2", "20210808_Batch_4", "1086292884", "E14", "DNA", "1")

#File ~/projects/counterfactuals_projects/.venv/lib/python3.11/site-packages/jump_portrait/fetch.py:108, in #get_jump_image(source, batch, plate, well, channel, site, correction, apply_correction, compressed, staging)
 #   103 location_frame = read_parquet_s3(s3_location_frame_uri)
 #   104 unique_site = location_frame.filter(
 #  105     (pl.col("Metadata_Well") == well) & (pl.col("Metadata_Site") == str(site))
 #   106 )
#--> 108 assert len(unique_site) == 1, "More than one site found"
#    110 first_row = unique_site.row(0, named=True)
 #   112 # Compressed images are already corrected

#AssertionError: More than one site found

This may be an issue with the metadata or a bug in the jump_portrait functions. It is worth investigating.

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