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

Resolve DeprecationWarning: invalid escape sequence(s) #1025

Open
andreas-el opened this issue Oct 10, 2024 · 1 comment
Open

Resolve DeprecationWarning: invalid escape sequence(s) #1025

andreas-el opened this issue Oct 10, 2024 · 1 comment

Comments

@andreas-el
Copy link
Contributor

These were found int test-linux-ert (unit-tests, 3.11, ubuntu-latest) / Run ert tests
Line 4369

../../../../../opt/hostedtoolcache/Python/3.11.10/x64/lib/python3.11/site-packages/resdata/util/util/time_vector.py:132
../../../../../opt/hostedtoolcache/Python/3.11.10/x64/lib/python3.11/site-packages/resdata/util/util/time_vector.py:132
../../../../../opt/hostedtoolcache/Python/3.11.10/x64/lib/python3.11/site-packages/resdata/util/util/time_vector.py:132
../../../../../opt/hostedtoolcache/Python/3.11.10/x64/lib/python3.11/site-packages/resdata/util/util/time_vector.py:132
  /opt/hostedtoolcache/Python/3.11.10/x64/lib/python3.11/site-packages/resdata/util/util/time_vector.py:132: DeprecationWarning: invalid escape sequence '\d'
    deltaRegexp = re.compile("(?P<num>\d*)(?P<unit>[dmy])", re.IGNORECASE)
../../../../../opt/hostedtoolcache/Python/3.11.10/x64/lib/python3.11/site-packages/resdata/summary/rd_cmp.py:98
../../../../../opt/hostedtoolcache/Python/3.11.10/x64/lib/python3.11/site-packages/resdata/summary/rd_cmp.py:98
../../../../../opt/hostedtoolcache/Python/3.11.10/x64/lib/python3.11/site-packages/resdata/summary/rd_cmp.py:98
../../../../../opt/hostedtoolcache/Python/3.11.10/x64/lib/python3.11/site-packages/resdata/summary/rd_cmp.py:98
  /opt/hostedtoolcache/Python/3.11.10/x64/lib/python3.11/site-packages/resdata/summary/rd_cmp.py:98: DeprecationWarning: invalid escape sequence '\i'
    """Will compare the summary vectors according to @key.
../../../../../opt/hostedtoolcache/Python/3.11.10/x64/lib/python3.11/site-packages/resdata/summary/rd_sum.py:1489
../../../../../opt/hostedtoolcache/Python/3.11.10/x64/lib/python3.11/site-packages/resdata/summary/rd_sum.py:1489
../../../../../opt/hostedtoolcache/Python/3.11.10/x64/lib/python3.11/site-packages/resdata/summary/rd_sum.py:1489
../../../../../opt/hostedtoolcache/Python/3.11.10/x64/lib/python3.11/site-packages/resdata/summary/rd_sum.py:1489
  /opt/hostedtoolcache/Python/3.11.10/x64/lib/python3.11/site-packages/resdata/summary/rd_sum.py:1489: DeprecationWarning: invalid escape sequence '\ '
    """Will solve the equation vector[@key] == value.
../../../../../opt/hostedtoolcache/Python/3.11.10/x64/lib/python3.11/site-packages/resdata/summary/rd_npv.py:115
../../../../../opt/hostedtoolcache/Python/3.11.10/x64/lib/python3.11/site-packages/resdata/summary/rd_npv.py:115
../../../../../opt/hostedtoolcache/Python/3.11.10/x64/lib/python3.11/site-packages/resdata/summary/rd_npv.py:115
../../../../../opt/hostedtoolcache/Python/3.11.10/x64/lib/python3.11/site-packages/resdata/summary/rd_npv.py:115
  /opt/hostedtoolcache/Python/3.11.10/x64/lib/python3.11/site-packages/resdata/summary/rd_npv.py:115: DeprecationWarning: invalid escape sequence '\['
    sumKeyRE = re.compile("[\[]([\w:,]+)[\]]")
@eivindjahren eivindjahren added the christmas-review Issues and PRs for Christmas review label Dec 13, 2024
@andreas-el andreas-el removed the christmas-review Issues and PRs for Christmas review label Dec 20, 2024
@andreas-el
Copy link
Contributor Author

Still present 2024-12-20.

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

No branches or pull requests

2 participants