We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Description
=============================================================================================== FAILURES ================================================================================================ _______________________________________________________________________________________ TestFindEmb.test_default ________________________________________________________________________________________ self = <layout.test_find_embedding.TestFindEmb testMethod=test_default> def test_default(self): """ Minimal find_embedding call """ # Test a dnx_graph > mml.find_embedding(self.S, self.C) layout/test_find_embedding.py:33: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../stage/usr/local/lib/python3.9/site-packages/minorminer/layout/__init__.py:93: in find_embedding S_layout, T_layout = _parse_layout_parameter(S, T, layout, layout_kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ S = <networkx.classes.graph.Graph object at 0x8e1647d30>, T = <networkx.classes.graph.Graph object at 0x8e16476a0>, layout = (<function p_norm at 0x8e1644ee0>, None), layout_kwargs = {} def _parse_layout_parameter(S, T, layout, layout_kwargs): """Determine what combination of iterable, dict, and function the layout parameter is. """ > if nx.utils.iterable(layout): E AttributeError: module 'networkx.utils' has no attribute 'iterable' ../../stage/usr/local/lib/python3.9/site-packages/minorminer/layout/__init__.py:154: AttributeError ____________________________________________________________________________________ TestFindEmb.test_layout_kwargs _____________________________________________________________________________________ self = <layout.test_find_embedding.TestFindEmb testMethod=test_layout_kwargs> def test_layout_kwargs(self): """ Pass in layout kwargs. """ # Pick some values to pass in dim = 3 center = (0, 0, 0) scale = 2 > _, (S_layout, C_layout) = mml.find_embedding(self.S, self.C, dim=dim, center=center, scale=scale, return_layouts=True) layout/test_find_embedding.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../stage/usr/local/lib/python3.9/site-packages/minorminer/layout/__init__.py:93: in find_embedding S_layout, T_layout = _parse_layout_parameter(S, T, layout, layout_kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ S = <networkx.classes.graph.Graph object at 0x9bd757f40>, T = <networkx.classes.graph.Graph object at 0x9bd757220>, layout = (<function p_norm at 0x8e1644ee0>, None) layout_kwargs = {'center': (0, 0, 0), 'dim': 3, 'scale': 2} def _parse_layout_parameter(S, T, layout, layout_kwargs): """Determine what combination of iterable, dict, and function the layout parameter is. """ > if nx.utils.iterable(layout): E AttributeError: module 'networkx.utils' has no attribute 'iterable' ../../stage/usr/local/lib/python3.9/site-packages/minorminer/layout/__init__.py:154: AttributeError ___________________________________________________________________________________ TestFindEmb.test_layout_parameter ___________________________________________________________________________________ self = <layout.test_find_embedding.TestFindEmb testMethod=test_layout_parameter> def test_layout_parameter(self): """ It can be a function or a 2-tuple of various things. """ # A function > mml.find_embedding(self.S, self.C, layout=nx.circular_layout) layout/test_find_embedding.py:119: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../stage/usr/local/lib/python3.9/site-packages/minorminer/layout/__init__.py:93: in find_embedding S_layout, T_layout = _parse_layout_parameter(S, T, layout, layout_kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ S = <networkx.classes.graph.Graph object at 0x952b6d730>, T = <networkx.classes.graph.Graph object at 0x952b6d6d0>, layout = <function circular_layout at 0x87ab0a430>, layout_kwargs = {} def _parse_layout_parameter(S, T, layout, layout_kwargs): """Determine what combination of iterable, dict, and function the layout parameter is. """ > if nx.utils.iterable(layout): E AttributeError: module 'networkx.utils' has no attribute 'iterable' ../../stage/usr/local/lib/python3.9/site-packages/minorminer/layout/__init__.py:154: AttributeError ___________________________________________________________________________________ TestFindEmb.test_layout_returning ___________________________________________________________________________________ self = <layout.test_find_embedding.TestFindEmb testMethod=test_layout_returning> def test_layout_returning(self): """ Layouts can be returned. """ > _, (S_layout, C_layout) = mml.find_embedding( self.S, self.C, return_layouts=True) layout/test_find_embedding.py:63: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../stage/usr/local/lib/python3.9/site-packages/minorminer/layout/__init__.py:93: in find_embedding S_layout, T_layout = _parse_layout_parameter(S, T, layout, layout_kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ S = <networkx.classes.graph.Graph object at 0x9604bef70>, T = <networkx.classes.graph.Graph object at 0x9604bea30>, layout = (<function p_norm at 0x8e1644ee0>, None), layout_kwargs = {} def _parse_layout_parameter(S, T, layout, layout_kwargs): """Determine what combination of iterable, dict, and function the layout parameter is. """ > if nx.utils.iterable(layout): E AttributeError: module 'networkx.utils' has no attribute 'iterable' ../../stage/usr/local/lib/python3.9/site-packages/minorminer/layout/__init__.py:154: AttributeError _______________________________________________________________________________________ TestFindEmb.test_mm_hints _______________________________________________________________________________________ self = <layout.test_find_embedding.TestFindEmb testMethod=test_mm_hints> def test_mm_hints(self): """ Different types of mm.find_embedding hinting. """ > mml.find_embedding(self.S, self.C, mm_hint_type="initial_chains") layout/test_find_embedding.py:53: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../stage/usr/local/lib/python3.9/site-packages/minorminer/layout/__init__.py:93: in find_embedding S_layout, T_layout = _parse_layout_parameter(S, T, layout, layout_kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ S = <networkx.classes.graph.Graph object at 0x9b06d2280>, T = <networkx.classes.graph.Graph object at 0x9b06d2490>, layout = (<function p_norm at 0x8e1644ee0>, None), layout_kwargs = {} def _parse_layout_parameter(S, T, layout, layout_kwargs): """Determine what combination of iterable, dict, and function the layout parameter is. """ > if nx.utils.iterable(layout): E AttributeError: module 'networkx.utils' has no attribute 'iterable' ../../stage/usr/local/lib/python3.9/site-packages/minorminer/layout/__init__.py:154: AttributeError __________________________________________________________________________________ TestFindEmb.test_placement_closest ___________________________________________________________________________________ self = <layout.test_find_embedding.TestFindEmb testMethod=test_placement_closest> def test_placement_closest(self): """ Test the closest placement strategy """ # Pick some values to pass in subset_size = (1, 2) num_neighbors = 5 > mml.find_embedding(self.S, self.C, placement=mml.closest, subset_size=subset_size, num_neighbors=num_neighbors) layout/test_find_embedding.py:105: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../stage/usr/local/lib/python3.9/site-packages/minorminer/layout/__init__.py:93: in find_embedding S_layout, T_layout = _parse_layout_parameter(S, T, layout, layout_kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ S = <networkx.classes.graph.Graph object at 0x9d84b6b50>, T = <networkx.classes.graph.Graph object at 0x9d84b6850>, layout = (<function p_norm at 0x8e1644ee0>, None), layout_kwargs = {} def _parse_layout_parameter(S, T, layout, layout_kwargs): """Determine what combination of iterable, dict, and function the layout parameter is. """ > if nx.utils.iterable(layout): E AttributeError: module 'networkx.utils' has no attribute 'iterable' ../../stage/usr/local/lib/python3.9/site-packages/minorminer/layout/__init__.py:154: AttributeError ________________________________________________________________________________ TestFindEmb.test_placement_interesction ________________________________________________________________________________ self = <layout.test_find_embedding.TestFindEmb testMethod=test_placement_interesction> def test_placement_interesction(self): """ Test the intersection placement strategy """ > mml.find_embedding(self.S, self.C, placement=mml.intersection) layout/test_find_embedding.py:112: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../stage/usr/local/lib/python3.9/site-packages/minorminer/layout/__init__.py:93: in find_embedding S_layout, T_layout = _parse_layout_parameter(S, T, layout, layout_kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ S = <networkx.classes.graph.Graph object at 0x9b06d2b50>, T = <networkx.classes.graph.Graph object at 0x9d5520dc0>, layout = (<function p_norm at 0x8e1644ee0>, None), layout_kwargs = {} def _parse_layout_parameter(S, T, layout, layout_kwargs): """Determine what combination of iterable, dict, and function the layout parameter is. """ > if nx.utils.iterable(layout): E AttributeError: module 'networkx.utils' has no attribute 'iterable' ../../stage/usr/local/lib/python3.9/site-packages/minorminer/layout/__init__.py:154: AttributeError ___________________________________________________________________________________ TestFindEmb.test_placement_kwargs ___________________________________________________________________________________ self = <layout.test_find_embedding.TestFindEmb testMethod=test_placement_kwargs> def test_placement_kwargs(self): """ Pass in placement kwargs. """ # Pick some values to pass in scale_ratio = .8 > mml.find_embedding(self.S, self.C, scale_ratio=scale_ratio) layout/test_find_embedding.py:95: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../stage/usr/local/lib/python3.9/site-packages/minorminer/layout/__init__.py:93: in find_embedding S_layout, T_layout = _parse_layout_parameter(S, T, layout, layout_kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ S = <networkx.classes.graph.Graph object at 0x9d84b6c40>, T = <networkx.classes.graph.Graph object at 0x9d84b7760>, layout = (<function p_norm at 0x8e1644ee0>, None), layout_kwargs = {} def _parse_layout_parameter(S, T, layout, layout_kwargs): """Determine what combination of iterable, dict, and function the layout parameter is. """ > if nx.utils.iterable(layout): E AttributeError: module 'networkx.utils' has no attribute 'iterable' ../../stage/usr/local/lib/python3.9/site-packages/minorminer/layout/__init__.py:154: AttributeError _______________________________________________________________________________________ TestFindEmb.test_timeout ________________________________________________________________________________________ self = <layout.test_find_embedding.TestFindEmb testMethod=test_timeout> def test_timeout(self): """ Test the timeout parameter """ # Subtract time from layout and placement and give it to mm.find_embedding > mml.find_embedding(self.S, self.C, timeout=10) layout/test_find_embedding.py:43: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../stage/usr/local/lib/python3.9/site-packages/minorminer/layout/__init__.py:93: in find_embedding S_layout, T_layout = _parse_layout_parameter(S, T, layout, layout_kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ S = <networkx.classes.graph.Graph object at 0xb5375a070>, T = <networkx.classes.graph.Graph object at 0xb5375a250>, layout = (<function p_norm at 0x8e1644ee0>, None), layout_kwargs = {} def _parse_layout_parameter(S, T, layout, layout_kwargs): """Determine what combination of iterable, dict, and function the layout parameter is. """ > if nx.utils.iterable(layout): E AttributeError: module 'networkx.utils' has no attribute 'iterable' ../../stage/usr/local/lib/python3.9/site-packages/minorminer/layout/__init__.py:154: AttributeError =========================================================================================== warnings summary ============================================================================================ ../../stage/usr/local/lib/python3.9/site-packages/minorminer/utils/polynomialembedder.py:60 /usr/ports/math/py-minorminer/work-py39/stage/usr/local/lib/python3.9/site-packages/minorminer/utils/polynomialembedder.py:60: DeprecationWarning: minorminer.utils.polynomialembedder is deprecated. Use minorminer.busclique intead. warnings.warn("minorminer.utils.polynomialembedder is deprecated. Use minorminer.busclique intead.", DeprecationWarning) tests/layout/test_layout.py::TestLayout::test_pnorm /usr/local/lib/python3.9/site-packages/numpy/linalg/linalg.py:2551: RuntimeWarning: invalid value encountered in reciprocal ret **= reciprocal(ord, dtype=ret.dtype) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ========================================================================= 9 failed, 153 passed, 2 warnings in 427.28s (0:07:07) ========================================================================= *** Error code 1
To Reproduce Regular build/test.
Environment:
The text was updated successfully, but these errors were encountered:
Thanks, this is due to an incompatible networkx version. I'm working on expanding our support window today.
Sorry, something went wrong.
No branches or pull requests
Description
To Reproduce
Regular build/test.
Environment:
The text was updated successfully, but these errors were encountered: