Skip to content

Commit

Permalink
fix: fix for duplicate units
Browse files Browse the repository at this point in the history
  • Loading branch information
AngRodrigues committed Jun 7, 2024
1 parent a916343 commit 4052eca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions map2loop/mapdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -1490,6 +1490,9 @@ def colour_units(
)

colour_lookup["colour"] = colour_lookup["colour"].str.upper()
# if there are duplicates in the clut file, drop.
colour_lookup = colour_lookup.drop_duplicates(subset=["UNITNAME"])

if "UNITNAME" in colour_lookup.columns and "colour" in colour_lookup.columns:
stratigraphic_units = stratigraphic_units.merge(
colour_lookup,
Expand Down

0 comments on commit 4052eca

Please sign in to comment.