deepmodeling / deepmd-kit

A deep learning package for many-body potential energy representation and molecular dynamics
https://docs.deepmodeling.com/projects/deepmd/
GNU Lesser General Public License v3.0
1.41k stars 487 forks source link

DeprecationWarning: invalid escape sequence '\.' #3789

Closed njzjz closed 1 month ago

njzjz commented 2 months ago
source/tests/pt/model/test_fitting_net.py:116
  /home/runner/work/deepmd-kit/deepmd-kit/source/tests/pt/model/test_fitting_net.py:116: DeprecationWarning: invalid escape sequence '\.'
    "filter_layers\.networks\.(\d).layers\.(\d)\.([a-z]+)", name
njzjz commented 1 month ago

It looks to me W605 can fix it automatically. No need to manually fix it.