Commit 0bc81cb2 authored by Arnaud WATLET's avatar Arnaud WATLET
Browse files

Adds progress bar in run_sequence

Showing with 4 additions and 2 deletions
+4 -2
......@@ -28,6 +28,7 @@ from ohmpi.logging_setup import setup_loggers
from ohmpi.config import MQTT_CONTROL_CONFIG, OHMPI_CONFIG, EXEC_LOGGING_CONFIG
import ohmpi.deprecated as deprecated
from ohmpi.hardware_system import OhmPiHardware
import tqdm
# finish import (done only when class is instantiated as some libs are only available on arm64 platform)
try:
......@@ -708,7 +709,7 @@ class OhmPi(object):
n = 1
else:
n = self.sequence.shape[0]
for i in range(0, n):
for i in tqdm(range(0, n), "Sequence progress:":
if self.sequence is None:
quad = np.array([0, 0, 0, 0])
else:
......
......@@ -10,4 +10,5 @@ numpy
paho-mqtt
termcolor
pandas
matplotlib
\ No newline at end of file
matplotlib
tqdm
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment