Skip to content
Snippets Groups Projects
Commit a6b366db authored by Sander de Snoo's avatar Sander de Snoo
Browse files

Fixed bug in upload of marker data

parent 0d43ace7
No related branches found
No related tags found
No related merge requests found
......@@ -515,7 +515,7 @@ class UploadAggregator:
else:
m = []
self._upload_awg_markers(job, marker_channel, m)
self._upload_awg_markers(job, marker_channel, m)
def _upload_awg_markers(self, job, marker_channel, m):
sections = job.upload_info.sections
......@@ -542,6 +542,7 @@ class UploadAggregator:
if t_off < section.t_end:
pt_off = int((t_off - section.t_start) * section.sample_rate)
buffer[pt_on:pt_off] = 1.0
logging.info(f'on/off: {pt_on}, {pt_off} ({section.npt})')
else:
logging.error(f'Failed to render marker t_off > end')
......
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