[Wien] init_w2w errors

Hamza BFA hamza.bfa at gmail.com
Fri Jan 17 12:07:58 CET 2025


Hi,
using init_w2w I got the following errors with version 24.1:
write_inwf:33: SyntaxWarning: invalid escape sequence '\s'
  __version__ = re.search(":\s*(.*?)\s*\$", __version__).group(1)
write_inwf:126: SyntaxWarning: invalid escape sequence '\s'
  m = re.match('A[\s=-_]*(\d+)', s, re.I)
write_inwf:131: SyntaxWarning: invalid escape sequence '\s'
  m = re.match('Z[\s=-_]*([\deE+.-]+)', s, re.I)
write_inwf:201: SyntaxWarning: invalid escape sequence '\s'
  pat = '^\s*(\w+)\s*=\s*(.*)'
These errors were fixed by adding only r' ' (for example r":\s*(.*?)\s*\$"
becomes  ":\s*(.*?)\s*\$"  )
but for this warning, I couldn't find a solution but the program with this
numpy version works fine
write_inwf:607: DeprecationWarning: Conversion of an array with ndim > 0 to
a scalar is deprecated, and will error in future. Ensure you extract a
single element from your array before performing this operation.
(Deprecated NumPy 1.25.)
  line = " %d %d % d  % 1.8f  % 1.8f" % \
Sincerely
H. BOUAFIA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://zeus.theochem.tuwien.ac.at/pipermail/wien/attachments/20250117/a364ac8a/attachment.htm>


More information about the Wien mailing list