Skip to content

Commit

Permalink
removed bug, sometimes alleles not float
Browse files Browse the repository at this point in the history
  • Loading branch information
saramonzon authored and luissian committed Apr 2, 2024
1 parent 7687db3 commit 571dcf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion taranis/distance.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def create_matrix(self) -> pd.DataFrame:
dist_matrix.write("\n".join(out_data[1:]))
dist_matrix.seek(0)
matrix_pd = pd.read_csv(
dist_matrix, sep="\t", index_col="alleles", engine="python", dtype=float
dist_matrix, sep="\t", index_col="alleles", engine="python"
).fillna(0)
# Close object and discard memory buffer
dist_matrix.close()
Expand Down

0 comments on commit 571dcf0

Please sign in to comment.