diff --git a/src/Basefold.ipynb b/src/Basefold.ipynb index fb3c476..85a7785 100644 --- a/src/Basefold.ipynb +++ b/src/Basefold.ipynb @@ -230,7 +230,7 @@ "def rep_encode(m, k0, c):\n", " assert len(m) % k0 == 0, \"len(m): %d is not a multiple of k0: %d\" % (len(m), k0)\n", " code = []\n", - " for i in range(0, c*len(m), k0):\n", + " for i in range(0, len(m), k0):\n", " for j in range(0, c):\n", " code += m[i:i+k0]\n", " return code"