Skip to content

Commit

Permalink
Remove warning
Browse files Browse the repository at this point in the history
Former-commit-id: 4c16472
  • Loading branch information
theosanderson authored Apr 24, 2022
1 parent a187161 commit c6c2588
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions taxoniumtools/src/taxoniumtools/usher_to_taxonium.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,12 @@ def main():

#only load these cols:
print("Loading metadata file..")
#Disable warnings because of DTypeWarning in pandas
import warnings
warnings.filterwarnings("ignore")
metadata = pd.read_csv(args.metadata, sep="\t", usecols=cols_of_interest)
# Enable again
warnings.filterwarnings("default")
metadata.set_index("strain", inplace=True)
# convert metadata to dict of rows

Expand Down

0 comments on commit c6c2588

Please sign in to comment.