Fix: Replaced accidental `continue` by `break` in boundaries/createindexlist.py
There was a continue
instead of a break
statement in the python code for index list creation, causing the single_link
flag to be ignored. The test cases for this are updated in lbmpy!41 (merged).
Merge request reports
Activity
It should probably the same as in
_create_boundary_cell_index_list_python
. Could you extend the test case in lbmpy to also checksingle_link=True
. You can use@pytest.mark.parametrize('single_link', (True, False))
and give the test case a parametersingle_link
.This should fail now, but pass with your fix.
Edited by Stephan SeitzI updated the test cases and opened a seperate MR: lbmpy!41 (merged). The pipeline there still fails because the fix isn't yet merged to the pystencils master.
Edited by Frederik HennigI think it would be a good idea to just move the test case from lbmpy to pystencils since it has no real lbmpy dependency as you have also mentioned.
The stencil then needs to be implemented manually in order to not have lbmpy as a dependency in the pystencils test suite. Would this be ok for you?
lbmpy as a test dependency for sympy wouldn't be that bad I guess (such tests can be skipped with
pytest.importorskip
. There's lots of stuff in pystencils that is only tested in lbmpy.We could also just run lbmpy Pipefile in full CI.
Edited by Stephan Seitz
mentioned in merge request lbmpy!41 (merged)
mentioned in commit f2e811e8