From 0ac0de58e80ddaf48e6238667fb6e513618f729b Mon Sep 17 00:00:00 2001 From: David Sagan Date: Tue, 9 Jul 2024 23:53:04 -0400 Subject: [PATCH] Minor fix. (#1048) --- tao/version/tao_version_mod.f90 | 2 +- util_programs/mad_to_bmad/mad8_to_bmad.py | 2 +- util_programs/mad_to_bmad/madx_to_bmad.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tao/version/tao_version_mod.f90 b/tao/version/tao_version_mod.f90 index f18379be57..1fa62973b8 100644 --- a/tao/version/tao_version_mod.f90 +++ b/tao/version/tao_version_mod.f90 @@ -6,5 +6,5 @@ !- module tao_version_mod -character(*), parameter :: tao_version_date = "2024/07/07 20:20:56" +character(*), parameter :: tao_version_date = "2024/07/08 18:14:10" end module diff --git a/util_programs/mad_to_bmad/mad8_to_bmad.py b/util_programs/mad_to_bmad/mad8_to_bmad.py index d8337fe061..9938677509 100644 --- a/util_programs/mad_to_bmad/mad8_to_bmad.py +++ b/util_programs/mad_to_bmad/mad8_to_bmad.py @@ -165,7 +165,7 @@ def order_var_def_list(): new_def_list.insert(0, ['! Duplicate: ' + vdef[0], vdef[1]]) else: new_def_list.insert(0, vdef) - exp_list = re.split('\+|-|\*|/|\(|\)|\^|,', vdef[1]) + exp_list = re.split(r'\+|-|\*|/|\(|\)|\^|,', vdef[1]) dependent_list[vdef[0]] = list(x.split() for x in exp_list) common.var_def_list = new_def_list diff --git a/util_programs/mad_to_bmad/madx_to_bmad.py b/util_programs/mad_to_bmad/madx_to_bmad.py index 971505afea..3df5ba2530 100644 --- a/util_programs/mad_to_bmad/madx_to_bmad.py +++ b/util_programs/mad_to_bmad/madx_to_bmad.py @@ -191,7 +191,7 @@ def order_var_def_list(): new_def_list.insert(0, ['! Duplicate: ' + vdef[0], vdef[1]]) else: new_def_list.insert(0, vdef) - exp_list = re.split('\+|-|\*|/|\(|\)|\^|,', vdef[1]) + exp_list = re.split(r'\+|-|\*|/|\(|\)|\^|,', vdef[1]) dependent_list[vdef[0]] = list(x.split() for x in exp_list) common.var_def_list = new_def_list