resdata icon indicating copy to clipboard operation
resdata copied to clipboard

Resolve DeprecationWarning: invalid escape sequence(s)

Open andreas-el opened this issue 4 months ago • 0 comments

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:,]+)[\]]")

andreas-el avatar Oct 10 '24 12:10 andreas-el