Skip to content

Commit

Permalink
fix test for Python 2
Browse files Browse the repository at this point in the history
  • Loading branch information
cdiener committed Mar 7, 2019
1 parent 6c11d54 commit f9676d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion biom/tests/test_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -1482,7 +1482,7 @@ def test_to_dataframe(self):

def test_to_dataframe_is_sparse(self):
df = example_table.to_dataframe()
density = (example_table.matrix_data.getnnz() /
density = (float(example_table.matrix_data.getnnz()) /
np.prod(example_table.shape))
assert np.allclose(df.density, density)

Expand Down

0 comments on commit f9676d8

Please sign in to comment.