-
Notifications
You must be signed in to change notification settings - Fork 345
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Version
23.02
Which installation method(s) does this occur on?
No response
Describe the bug.
CI ran into this issue:
=========================== short test summary info ============================
FAILED tests/test_property_graph.py::test_renumber_vertices_by_type[df_type=cudf.DataFrame-None] - AttributeError: 'bool' object has no attribute 'all'
FAILED tests/test_property_graph.py::test_renumber_vertices_by_type[df_type=cudf.DataFrame-prev_id] - AttributeError: 'bool' object has no attribute 'all'
FAILED tests/test_property_graph.py::test_renumber_edges_by_type[df_type=cudf.DataFrame-None] - AttributeError: 'bool' object has no attribute 'all'
FAILED tests/test_property_graph.py::test_renumber_edges_by_type[df_type=cudf.DataFrame-prev_id] - AttributeError: 'bool' object has no attribute 'all'
= 4 failed, 1488 passed, 561 skipped, 22 deselected, 899 warnings in 1484.16s (0:24:44) =
Ran Python pytest for cugraph : return code was: 1, test script exit code is now: 1
=================================== FAILURES ===================================
_________ test_renumber_vertices_by_type[df_type=cudf.DataFrame-None] __________
dataset1_PropertyGraph = (<PropertyGraph object at 0x7f6baeca8610>, {'merchants': [['merchant_id', 'merchant_location', 'merchant_size', 'merch...yer_id', 'amount'], [(11, 1123.98), (4, 3243.7), (21, 8932.3), (16, 3241.77), (86, 789.2), (89021, 23.98), ...]], ...})
prev_id_column = None
@pytest.mark.parametrize("prev_id_column", [None, "prev_id"])
def test_renumber_vertices_by_type(dataset1_PropertyGraph, prev_id_column):
from cugraph.experimental import PropertyGraph
(pG, data) = dataset1_PropertyGraph
with pytest.raises(ValueError, match="existing column"):
pG.renumber_vertices_by_type("merchant_size")
df_id_ranges = pG.renumber_vertices_by_type(prev_id_column)
expected = {
"merchants": [0, 4], # stop is inclusive
"users": [5, 8],
}
for key, (start, stop) in expected.items():
assert df_id_ranges.loc[key, "start"] == start
assert df_id_ranges.loc[key, "stop"] == stop
df = pG.get_vertex_data(types=[key])
assert len(df) == stop - start + 1
> assert (df["_VERTEX_"] == list(range(start, stop + 1))).all()
E AttributeError: 'bool' object has no attribute 'all'Minimum reproducible example
No response
Relevant log output
No response
Environment details
No response
Other/Misc.
No response
Code of Conduct
- I agree to follow cuGraph's Code of Conduct
- I have searched the open bugs and have found no duplicates for this bug report
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working