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

updated code comments

parent 48899b00
No related branches found
No related tags found
No related merge requests found
......@@ -691,7 +691,9 @@ class UploadAggregator:
logger.info(f'DC compensation time: {compensation_time*1e9} ns')
compensation_npt = int(np.ceil(compensation_time * section.sample_rate * 1e9))
if compensation_npt > 50_000:
# more than 50_000 samples? Use new segment with lower sample rate for compensation
# More than 50_000 samples? Use new segment with lower sample rate for compensation
# Upload of 50_000 samples takes ~ 1 ms. It saves upload time to
# create a new waveform with lower sample rate.
sample_rate = 1e9 * section.sample_rate * 5_000 / compensation_npt
# find an existing sample rate
......
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