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.
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.