Skip to content
New issue

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

'\d' is deprecated syntax #6

Open
Twelgemoed opened this issue Aug 15, 2024 · 0 comments
Open

'\d' is deprecated syntax #6

Twelgemoed opened this issue Aug 15, 2024 · 0 comments

Comments

@Twelgemoed
Copy link

Twelgemoed commented Aug 15, 2024

Newer versions of python3 (>=3.6) treats a '\d' string as an escape sequence, leading to the following error:

ApoplastP-1.0.2/Scripts/functions.py:333: SyntaxWarning: invalid escape sequence '\d'
molecular_weight = float(re.findall("\d+.\d+", str(mwline))[0])

Adding another escape \ in the python code seems to have fixed this for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant