From 8bd595d2fab37c06a81160cca06f33e4ade9ce9a Mon Sep 17 00:00:00 2001 From: Theo Sanderson Date: Sun, 21 Jul 2024 20:54:12 +0200 Subject: [PATCH] Enforce that metadata key column is a string (#601) --- taxoniumtools/src/taxoniumtools/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/taxoniumtools/src/taxoniumtools/utils.py b/taxoniumtools/src/taxoniumtools/utils.py index bb089540..7e12e5f5 100644 --- a/taxoniumtools/src/taxoniumtools/utils.py +++ b/taxoniumtools/src/taxoniumtools/utils.py @@ -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: