leidenalg icon indicating copy to clipboard operation
leidenalg copied to clipboard

Python 3.12 invalid escape sequences warnings

Open Zaf4 opened this issue 1 year ago • 1 comments

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.

Zaf4 avatar Jul 26 '24 21:07 Zaf4

This was fixed in 4f660763e8270ff84aa5f1f273356fd331a9b607 but the fix isn't part of a release yet.

jboynyc avatar Mar 29 '25 22:03 jboynyc

Closing it because it's already fixed, will be part of a next release (planned for after the summer somewhere).

vtraag avatar Jul 11 '25 07:07 vtraag