vtraag/leidenalg

Python 3.12 invalid escape sequences warnings

Zaf4 opened this issue · 0 comments

Zaf4 commented

When installing squidpy I got this syntax warning from this repo. I think this does not affect anything but it is best to bring it to your attention.

/home/zaf4/tests/sq_test/sq_interactive_312/lib/python3.12/site-packages/leidenalg/VertexPartition.py:388: SyntaxWarning: invalid escape sequence '\m'
""" Implements modularity. This quality function is well-defined only for positive edge weights.
/home/zaf4/tests/sq_test/sq_interactive_312/lib/python3.12/site-packages/leidenalg/VertexPartition.py:761: SyntaxWarning: invalid escape sequence '\m'
""" Implements Reichardt and Bornholdt's Potts model with a configuration null model.
/home/zaf4/tests/sq_test/sq_interactive_312/lib/python3.12/site-packages/leidenalg/Optimiser.py:7: SyntaxWarning: invalid escape sequence '\g'
""" Class for doing community detection using the Leiden algorithm.
/home/zaf4/tests/sq_test/sq_interactive_312/lib/python3.12/site-packages/leidenalg/Optimiser.py:305: SyntaxWarning: invalid escape sequence '\s'
""" Optimise the given partitions simultaneously.