From cc5e73716ffa99fc070f753f4cad1993027dd263 Mon Sep 17 00:00:00 2001 From: Leonid Kostrykin Date: Fri, 27 Sep 2024 10:24:38 +0200 Subject: [PATCH] Fix bug in `_move_char` --- lib/galaxy/tool_util/verify/asserts/image.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/galaxy/tool_util/verify/asserts/image.py b/lib/galaxy/tool_util/verify/asserts/image.py index c2c6dfb368e5..d9972994d3fe 100644 --- a/lib/galaxy/tool_util/verify/asserts/image.py +++ b/lib/galaxy/tool_util/verify/asserts/image.py @@ -546,8 +546,6 @@ def _compute_center_of_mass(im_arr: "numpy.typing.NDArray") -> Tuple[float, floa def _move_char(s: str, pos_src: int, pos_dst: int) -> str: s_list = list(s) c = s_list.pop(pos_src) - if pos_dst > pos_src: - pos_dst -= 1 if pos_dst < 0: pos_dst = len(s_list) + pos_dst + 1 s_list.insert(pos_dst, c)