Skip to content

Commit

Permalink
vnikedsst
Browse files Browse the repository at this point in the history
  • Loading branch information
ilumsden committed Jun 9, 2023
1 parent f47a65a commit 4554cee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions thicket/tests/test_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def test_new_style_query_base(rajaperf_basecuda_xl_cali):
)
)

check_query(th, hnids, query)
check_query(th, hnids, query, multi_index_mode="off")


def test_new_style_query_object(rajaperf_basecuda_xl_cali):
Expand Down Expand Up @@ -100,4 +100,4 @@ def test_old_style_query(rajaperf_basecuda_xl_cali):
)
)

check_query(th, hnids, query)
check_query(th, hnids, query, multi_index_mode="off")
2 changes: 1 addition & 1 deletion thicket/thicket.py
Original file line number Diff line number Diff line change
Expand Up @@ -1114,7 +1114,7 @@ def query(
Returns:
(Thicket): a new Thicket object containing the data that matches the query
"""
if not is_thicket_query(query_obj):
if not is_thicket_query(query_obj) or not isinstance(query_obj, (list, str)):
raise TypeError(
"Input to 'query' must be a Hatchet query (i.e., list, str, or new- or old-style query object)"
)
Expand Down

0 comments on commit 4554cee

Please sign in to comment.