diff --git a/src/pydna/utils.py b/src/pydna/utils.py index 378abb6d..8c1db3fc 100644 --- a/src/pydna/utils.py +++ b/src/pydna/utils.py @@ -65,7 +65,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: