From d4143d6266e81fb40096e04e4d176552cc356a73 Mon Sep 17 00:00:00 2001
From: xiyehu2 <35537592+xiyehu2@users.noreply.github.com>
Date: Mon, 12 Dec 2022 11:56:46 -0600
Subject: [PATCH] bug fixing

---
 Python/waveform.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Python/waveform.py b/Python/waveform.py
index e7167d8..56ab42f 100644
--- a/Python/waveform.py
+++ b/Python/waveform.py
@@ -220,7 +220,7 @@ def create_path_table_reduced(
         dw_max = dw_max_l if dw_max_l > dw_max_r else dw_max_r
         dw_max = abs(wfm.omega[dw_max] - wfm.omega[0])
 
-    print(dw_max / 2 / np.pi)
+    print("max dw:", dw_max / 2 / np.pi)
 
     # setup basic variables
     twopi = 2 * np.pi
@@ -238,7 +238,7 @@ def create_path_table_reduced(
     t = np.arange(sample_len) / wfm.sample_rate  # time series
 
     # iterate!
-    for i in range(n):
+    for i in range(nt):
         omega_i = wfm.omega[i]
         for j in moves[i]:  # j is the target position, i is starting position
             omega_j = wfm.omega[j]
-- 
GitLab