We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abaf4c9 commit ccd4779Copy full SHA for ccd4779
application.py
@@ -535,7 +535,14 @@ def experiment(self):
535
pulse[BNC.DELAY] = pulse.experimentTuple[BNC.DELAY].get()
536
pulse[BNC.WIDTH] = pulse.experimentTuple[BNC.WIDTH].get()
537
pulse[BNC.STATE] = pulse.experimentTuple[BNC.STATE].get()
538
- assert(p_N_d*float(pulse.experimentTuple[BNC.dPHASE].get()) < p_T)
+ total_time_used = p_N_d*float(
539
+ pulse.experimentTuple[BNC.dPHASE].get())
540
+ if total_time_used >= p_T:
541
+ raise AssertionError(
542
+ "Experiment time to short. Pulse nr {}".
543
+ format(pulse.number)
544
+ + " uses {}s but {}s were allocated.".format(
545
+ total_time_used, p_T))
546
547
self.avh.prepareAll(p_T, True, p_N_c)
548
totalSpectras = []
0 commit comments