*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
Commit 62fcce33 authored by Schabbauer, Johannes's avatar Schabbauer, Johannes
Browse files

Fix sorting of samples in buffered mode

parent 64d3bd3e
No related branches found
No related tags found
1 merge request!2Added new spectrum awg card.
......@@ -2,6 +2,7 @@ import labscript_utils.h5_lock
import h5py
from blacs.tab_base_classes import Worker
from . import SpectrumCard
import numpy as np
class SpectrumAWGWorker(Worker):
def init(self):
......@@ -68,7 +69,8 @@ class SpectrumAWGWorker(Worker):
self.smart_cache = {}
last_index = len(group[ch].attrs)-1
for index,t in enumerate(group[ch].attrs):
times = np.sort(np.array(group[ch].attrs).astype(np.float32)) # The attribute names are strings and sorted wrong. TODO: better perfomance without sorting here?
for index,t in enumerate(times):
### LOOP TROUGH STREAMING STEPS ###
instruction = group[ch].attrs[t]
instruction_hash = hash(instruction.tobytes())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment