Commit 69efcbe8 authored by Projects's avatar Projects

pulse_gen: Shorter warning messages

parent d4b7c308
...@@ -4,7 +4,9 @@ ...@@ -4,7 +4,9 @@
# Agilent 33250A pulse generator controller # Agilent 33250A pulse generator controller
#=============================================================================== #===============================================================================
# author: Maciej Suminski (maciej.suminski@cern.ch) # author: Maciej Suminski (maciej.suminski@cern.ch)
#
# date of creation: 02.02.2017 # date of creation: 02.02.2017
#
# version: 1.0 # version: 1.0
# #
# description: # description:
...@@ -191,10 +193,10 @@ else: ...@@ -191,10 +193,10 @@ else:
real_count = count * div real_count = count * div
if width != orig_width: if width != orig_width:
print('WARNING: Pulse width had to be rounded to %G (requested %G)' % (width, orig_width)) print('WARNING: Pulse width rounded to %G (requested %G)' % (width, orig_width))
if real_count != orig_count: if real_count != orig_count:
print('WARNING: Number of pulses had to be rounded to %d (requested %d)' % (real_count, orig_count)) print('WARNING: Number of pulses rounded to %d (requested %d)' % (real_count, orig_count))
# set the arbitrary waveform (a number of consecutive pulses) # set the arbitrary waveform (a number of consecutive pulses)
print('Configuring arbitrary waveform') print('Configuring arbitrary waveform')
......
Markdown is supported
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