File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed
Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -1228,11 +1228,18 @@ def experiment(self):
12281228 # Delay instruments
12291229 for pulse in self ._bnc :
12301230 if pulse [BNC .STATE ] == "1" :
1231- pulse [BNC .DELAY ] = \
1232- float (pulse .experimentTuple [BNC .DELAY ].get ()) \
1233- + n_d * \
1234- float (pulse .experimentTuple [BNC .dPHASE ].get ())
1235-
1231+ if pulse .experimentTuple [BNC .PHASE_BASE ].get () == "1" :
1232+ pulse [BNC .DELAY ] = \
1233+ float (pulse .experimentTuple [BNC .DELAY ].get ()) \
1234+ + n_d * \
1235+ float (pulse .experimentTuple [BNC .dPHASE ].get ())
1236+ else :
1237+ pulse [BNC .DELAY ] = \
1238+ float (pulse .experimentTuple [BNC .DELAY ].get ()) \
1239+ + (float (
1240+ pulse .experimentTuple [BNC .PHASE_BASE ].get ()
1241+ ) ** n_d ) * \
1242+ float (pulse .experimentTuple [BNC .dPHASE ].get ())
12361243 del tp_scopes
12371244
12381245 # END OF DELAY LOOP
You can’t perform that action at this time.
0 commit comments