-
Notifications
You must be signed in to change notification settings - Fork 27
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
There was a problem hiding this 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
There was a problem hiding this 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.
…sis into duplicate_cluster_id
What is the purpose of this PR?
Closes #1099. Addresses an issue in the merging of
gui_map
andcluster_map
ingenerate_and_save_cluster_masks
where if an existingcluster_id
already exists ingui_map
, multiplecluster_id
columns with variable suffixes get created.How did you implement your changes
We use the
.drop
method inpandas
witherrors="ignore"
to drop thecluster_id
column, but only if it exists. This will prevent merging issues.