Commit c29fd71c authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Implements set_sequence command

Showing with 3 additions and 2 deletions
+3 -2
......@@ -6,3 +6,4 @@ Ohmpi_4elec_mqtt.py
ohmpy/*
logs/*
sequence.txt
/Proposition interface.odp
......@@ -13,6 +13,7 @@ import json
import numpy as np
import csv
import time
from io import StringIO
import zmq
from datetime import datetime
from termcolor import colored
......@@ -673,8 +674,7 @@ class OhmPi(object):
self._update_acquisition_settings(args)
status = True
elif cmd == 'set_sequence' and args is not None:
self.sequence = np.array_str
self._update_acquisition_settings(args)
self.sequence = np.loadtxt(StringIO(args))
status = True
elif cmd == 'start':
self.measure(cmd_id)
......
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