EnzymeML / PyEnzyme

🧬 - Data management and modeling framework based on EnzymeML.
BSD 2-Clause "Simplified" License
23 stars 9 forks source link

deprecation warning on regex #7

Closed fbergmann closed 3 years ago

fbergmann commented 3 years ago

Running the tests, we see the following deprecation warnings:


=============================== warnings summary ===============================
pyenzyme/enzymeml/tools/unitparser.py:30
  /home/runner/work/PyEnzyme/PyEnzyme/pyenzyme/enzymeml/tools/unitparser.py:30: DeprecationWarning: invalid escape sequence \d
    regex = "([a-zA-Z]*)([-+][\d]*)"

pyenzyme/enzymeml/tools/unitparser.py:51
  /home/runner/work/PyEnzyme/PyEnzyme/pyenzyme/enzymeml/tools/unitparser.py:51: DeprecationWarning: invalid escape sequence \d
    regex = "([a-zA-z]*)([-+]?\d*)"

-- Docs: https://docs.pytest.org/en/stable/warnings.html
======================== 4 passed, 2 warnings in 1.01s =========================
JR-1991 commented 3 years ago

The warnings were resolved by converting the strings to raw strings. Thanks for pointing out!