Skip to content

Commit

Permalink
Enforce that metadata key column is a string (#601)
Browse files Browse the repository at this point in the history
  • Loading branch information
theosanderson authored Jul 21, 2024
1 parent 94dc319 commit 8bd595d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions taxoniumtools/src/taxoniumtools/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def read_metadata(metadata_file, columns, key_column):
usecols=cols_of_interest)
# Enable again
warnings.filterwarnings("default")
metadata[key_column] = metadata[key_column].astype(str)
metadata.set_index(key_column, inplace=True)
# convert metadata to dict of rows
if not metadata.index.is_unique:
Expand Down

0 comments on commit 8bd595d

Please sign in to comment.