From cf4f04adc401c4a4af2f7d2403a9c114f7945ee8 Mon Sep 17 00:00:00 2001 From: menshibin Date: Fri, 10 Oct 2025 13:49:19 +0800 Subject: [PATCH] docs: fix python examples error --- docs/examples/python/stmt2_native.py | 2 +- docs/examples/python/stmt2_ws.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/examples/python/stmt2_native.py b/docs/examples/python/stmt2_native.py index 72f01c9038b3..28949770c612 100644 --- a/docs/examples/python/stmt2_native.py +++ b/docs/examples/python/stmt2_native.py @@ -45,7 +45,7 @@ voltages = [] phases = [] for j in range (numOfRow): - timestamps.append(current + i*1000 + j) + timestamps.append(current + j) currents.append(float(random.random() * 30)) voltages.append(random.randint(100, 300)) phases.append(float(random.random())) diff --git a/docs/examples/python/stmt2_ws.py b/docs/examples/python/stmt2_ws.py index e275ee381241..8ccd3d88794a 100644 --- a/docs/examples/python/stmt2_ws.py +++ b/docs/examples/python/stmt2_ws.py @@ -33,7 +33,7 @@ voltages = [] phases = [] for j in range (numOfRow): - timestamps.append(current + i) + timestamps.append(current + j) currents.append(random.random() * 30) voltages.append(random.randint(100, 300)) phases.append(random.random())