Skip to content

Conversation

alex-l-kong
Copy link
Contributor

What is the purpose of this PR?

Closes #1099. Addresses an issue in the merging of gui_map and cluster_map in generate_and_save_cluster_masks where if an existing cluster_id already exists in gui_map, multiple cluster_id columns with variable suffixes get created.

How did you implement your changes

We use the .drop method in pandas with errors="ignore" to drop the cluster_id column, but only if it exists. This will prevent merging issues.

@alex-l-kong alex-l-kong self-assigned this Jan 22, 2024
Copy link
Contributor

@camisowers camisowers left a comment

Choose a reason for hiding this comment

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

Looks good.

Copy link
Contributor

@cliu72 cliu72 left a comment

Choose a reason for hiding this comment

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

Looks good to me

Copy link
Contributor

@srivarra srivarra left a comment

Choose a reason for hiding this comment

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

Code looks good, tests seem to be failing however.

@alex-l-kong alex-l-kong added this pull request to the merge queue Feb 27, 2024
Merged via the queue into main with commit d3e9e4a Feb 27, 2024
@alex-l-kong alex-l-kong deleted the duplicate_cluster_id branch February 27, 2024 01:31
@srivarra srivarra added the bug Something isn't working label May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error in create_mantis_dir in cell clustering notebook if running generate_and_save_cell_cluster_masks multiple times
4 participants