You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am encountering a problem with the python-xrt library when performing byte compilation with Python 3.12. Several files in the library are generating SyntaxWarning related to invalid escape sequences. These warnings appear in various files and could potentially affect the compatibility and functionality of the library.
Here are some examples of the errors I am seeing:
/usr/lib/python3/dist-packages/xrt/backends/raycing/coherence.py:39: SyntaxWarning: invalid escape sequence '\ '
/usr/lib/python3/dist-packages/xrt/backends/raycing/coherence.py:203: SyntaxWarning: invalid escape sequence '\ '
/usr/lib/python3/dist-packages/xrt/backends/raycing/coherence.py:235: SyntaxWarning: invalid escape sequence '\ '
/usr/lib/python3/dist-packages/xrt/examples/withRaycing/01_SynchrotronSources/MAX-IV-IDs-Flux.py:101: SyntaxWarning: invalid escape sequence '\R'
/usr/lib/python3/dist-packages/xrt/examples/withRaycing/01_SynchrotronSources/my_arbitrary_field_test.py:539: SyntaxWarning: invalid escape sequence '\D'
Thank you in advance for your help!
The text was updated successfully, but these errors were encountered:
Hi,
These are only warnings generated in docstrings, and I doubt this will ever be a compatibility problem.
In the current GitHub version of xrt this is fixed already. We will make a minor release soon.
Thank you for the update. I'm glad to hear that the fix is already in the current GitHub version of xrt and that a minor release is coming soon. Looking forward to it!"
Hello,
I am encountering a problem with the python-xrt library when performing byte compilation with Python 3.12. Several files in the library are generating SyntaxWarning related to invalid escape sequences. These warnings appear in various files and could potentially affect the compatibility and functionality of the library.
Here are some examples of the errors I am seeing:
/usr/lib/python3/dist-packages/xrt/backends/raycing/coherence.py:39: SyntaxWarning: invalid escape sequence '\ '
/usr/lib/python3/dist-packages/xrt/backends/raycing/coherence.py:203: SyntaxWarning: invalid escape sequence '\ '
/usr/lib/python3/dist-packages/xrt/backends/raycing/coherence.py:235: SyntaxWarning: invalid escape sequence '\ '
/usr/lib/python3/dist-packages/xrt/examples/withRaycing/01_SynchrotronSources/MAX-IV-IDs-Flux.py:101: SyntaxWarning: invalid escape sequence '\R'
/usr/lib/python3/dist-packages/xrt/examples/withRaycing/01_SynchrotronSources/my_arbitrary_field_test.py:539: SyntaxWarning: invalid escape sequence '\D'
Thank you in advance for your help!
The text was updated successfully, but these errors were encountered: