Skip to content

Commit

Permalink
Merge pull request #128 from charles-cowart/ver_update
Browse files Browse the repository at this point in the history
 Updated code + tests
  • Loading branch information
wasade authored Aug 31, 2023
2 parents ed310d5 + 1994718 commit b1cd542
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion redbiom/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ def taxon_ancestors(context, ids, get=None, normalize=None):
---------------------
HMGET <context>:taxonomy-parents <child> ... <child>
"""
from future.moves.itertools import zip_longest
from itertools import zip_longest
import redbiom._requests

if get is None:
Expand Down
2 changes: 1 addition & 1 deletion redbiom/tests/test_fetch.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import unittest
import requests
from future.moves.itertools import zip_longest
from itertools import zip_longest

import numpy as np
import biom
Expand Down
2 changes: 1 addition & 1 deletion redbiom/tests/test_summarize.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import biom
import pandas as pd
import pandas.util.testing as pdt
import pandas.testing as pdt

import redbiom
import redbiom.admin
Expand Down
6 changes: 4 additions & 2 deletions redbiom/tests/test_where_expr.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import unittest
import pandas as pd
import pandas.util.testing as pdt
import pandas.testing as pdt

from redbiom.where_expr import whereeval, _cast_retain_numeric

Expand All @@ -19,7 +19,9 @@ class WhereTests(unittest.TestCase):
def test_cast_retain_numeric(self):
tests = [(pd.Series(['a', '10', '1.23']),
pd.Series([10.0, 1.23], index=[1, 2])),
(pd.Series(['a', 'b', 'c']), pd.Series([])),
# the default dtype for empty Series was changed from float64
# to object for current versions of Pandas.
(pd.Series(['a', 'b', 'c']), pd.Series([], dtype='float64')),
(pd.Series(['1', '2', '3', '4']),
pd.Series([1, 2, 3, 4], index=[0, 1, 2, 3]))]

Expand Down

0 comments on commit b1cd542

Please sign in to comment.