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

Don't generate duplicate cluster_id columns if generate_and_save_cluster_masks run twice #1110

Merged
merged 19 commits into from
Feb 27, 2024

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.

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
18 checks passed
@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
4 participants