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 ...@@ -28,6 +28,7 @@ from ohmpi.logging_setup import setup_loggers
from ohmpi.config import MQTT_CONTROL_CONFIG, OHMPI_CONFIG, EXEC_LOGGING_CONFIG from ohmpi.config import MQTT_CONTROL_CONFIG, OHMPI_CONFIG, EXEC_LOGGING_CONFIG
import ohmpi.deprecated as deprecated import ohmpi.deprecated as deprecated
from ohmpi.hardware_system import OhmPiHardware 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) # finish import (done only when class is instantiated as some libs are only available on arm64 platform)
try: try:
...@@ -708,7 +709,7 @@ class OhmPi(object): ...@@ -708,7 +709,7 @@ class OhmPi(object):
n = 1 n = 1
else: else:
n = self.sequence.shape[0] 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: if self.sequence is None:
quad = np.array([0, 0, 0, 0]) quad = np.array([0, 0, 0, 0])
else: else:
......
...@@ -10,4 +10,5 @@ numpy ...@@ -10,4 +10,5 @@ numpy
paho-mqtt paho-mqtt
termcolor termcolor
pandas pandas
matplotlib matplotlib
\ No newline at end of file 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