-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
unixmd/src/qm/columbus/casscf.py:332: SyntaxWarning: invalid escape sequence '\s'
tmp_e = 'total\senergy[=]\s*([-]\S+)[,]'
unixmd/src/qm/columbus/casscf.py:346: SyntaxWarning: invalid escape sequence '\s'
tmp_f ='\s+([-]*\S+)\s+([-]*\S+)\s+([-]*\S+)\n' * molecule.nat_qm
unixmd/src/qm/columbus/casscf.py:363: SyntaxWarning: invalid escape sequence '\s'
tmp_c = '\s+([-]*\S+)\s+([-]*\S+)\s+([-]*\S+)\n' * molecule.nat_qm
unixmd/src/qm/columbus/mrci.py:422: SyntaxWarning: invalid escape sequence '\s'
tmp_e += ' mr-sdci [#]\s*\S+\s+\S+\s+([-]\S+)\s+[-]*\S+\s+[-]*\S+\s+[-]*\S+\s+[-]*\S+\s+\n'
unixmd/src/qm/columbus/mrci.py:424: SyntaxWarning: invalid escape sequence '\s'
tmp_e += ' mr-sdci [#]\s*\S+\s+\S+\s+[-]\S+\s+[-]*\S+\s+[-]*\S+\s+[-]*\S+\s+[-]*\S+\s+\n'
unixmd/src/qm/columbus/mrci.py:439: SyntaxWarning: invalid escape sequence '\s'
tmp_f ='\s+([-]*\S+)\s+([-]*\S+)\s+([-]*\S+)\n' * molecule.nat_qm
unixmd/src/qm/columbus/mrci.py:454: SyntaxWarning: invalid escape sequence '\s'
tmp_c = '\s+([-]*\S+)\s+([-]*\S+)\s+([-]*\S+)\n' * molecule.nat_qm
unixmd/src/qm/dftbplus/dftb.py:658: SyntaxWarning: invalid escape sequence '\s'
energy = re.findall('Total energy:\s+([-]\S+) H', detailed_out)
unixmd/src/qm/dftbplus/dftb.py:663: SyntaxWarning: invalid escape sequence '\s'
tmp_e = f'[=]+\n' + ('\s+([-]*\S+)\s+\S+\s+\d+\s+->\s+\d+\s+\S+\s+\S+\s+[ST]') * molecule.nst
unixmd/src/qm/dftbplus/dftb.py:671: SyntaxWarning: invalid escape sequence '\s'
tmp_f = 'Total Forces' + '\n\s+\d*\s+([-]*\S+)\s+([-]*\S+)\s+([-]*\S+)' * molecule.nat_qm
unixmd/src/qm/dftbplus/ssr.py:565: SyntaxWarning: invalid escape sequence '\s'
tmp_e = 'Spin' + '\n\s+\w+\s+([-]\S+)(?:\s+\S+){3}' * molecule.nst
unixmd/src/qm/dftbplus/ssr.py:571: SyntaxWarning: invalid escape sequence '\s'
energy = re.findall('SSR state\s+\S+\s+([-]\S+)', log_out)
unixmd/src/qm/dftbplus/ssr.py:575: SyntaxWarning: invalid escape sequence '\s'
tmp_e = 'Spin' + '\n\s+\w+\s+([-]\S+)(?:\s+\S+){3}' * molecule.nst
unixmd/src/qm/dftbplus/ssr.py:584: SyntaxWarning: invalid escape sequence '\s'
tmp_g = f' {ist + 1}\s*\w* state \(\w+[-]*\w+\)' + '\n\s+([-]*\S+)\s+([-]*\S+)\s+([-]*\S+)' * molecule.nat_qm
unixmd/src/qm/dftbplus/ssr.py:584: SyntaxWarning: invalid escape sequence '\s'
tmp_g = f' {ist + 1}\s*\w* state \(\w+[-]*\w+\)' + '\n\s+([-]*\S+)\s+([-]*\S+)\s+([-]*\S+)' * molecule.nat_qm
unixmd/src/qm/dftbplus/ssr.py:590: SyntaxWarning: invalid escape sequence '\s'
tmp_f = 'Forces on external charges' + '\n\s+([-]*\S+)\s+([-]*\S+)\s+([-]*\S+)' * molecule.nat_mm
In the qm interface, the regular expression pattern triggers the following warning after upgrading to Python 3.12
Starting with Python 3.12, invalid backslash escapes are elevated from DeprecationWarning to SyntaxWarning. In a future release, this will become a SyntaxError. (https://docs.python.org/3/whatsnew/3.12.html#other-language-changes)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels