From 4bfd0ac2c4befded8da1919ea49da1ef697d2352 Mon Sep 17 00:00:00 2001 From: Manuel Lera-Ramirez Date: Thu, 18 Jan 2024 09:55:28 +0000 Subject: [PATCH] Update utils.py --- src/pydna/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pydna/utils.py b/src/pydna/utils.py index f66d797b..5905b3aa 100644 --- a/src/pydna/utils.py +++ b/src/pydna/utils.py @@ -63,7 +63,7 @@ def shift_location(original_location, shift, lim): newparts.append(_sl(ns, ne, strand)) else: parttuple = (_sl(ns, lim, strand), _sl(0, ne, strand)) - newparts.extend(parttuple if strand == 1 else parttuple[::-1]) + newparts.extend(parttuple if strand != -1 else parttuple[::-1]) try: newloc = _cl(newparts) except ValueError: