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

Closed
andreas-el opened this issue Oct 10, 2024 · 1 comment · Fixed by #1034
Closed

Resolve DeprecationWarning: invalid escape sequence(s) #1025

andreas-el opened this issue Oct 10, 2024 · 1 comment · Fixed by #1034
Assignees

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.

@sondreso sondreso added this to SCOUT Jan 6, 2025
@sondreso sondreso moved this to Todo in SCOUT Jan 6, 2025
@eivindjahren eivindjahren moved this from Todo to In Progress in SCOUT Jan 28, 2025
@eivindjahren eivindjahren self-assigned this Jan 28, 2025
@github-project-automation github-project-automation bot moved this from In Progress to Done in SCOUT Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants