Skip to content

Commit

Permalink
examples: with sequential -> with parallel
Browse files Browse the repository at this point in the history
jordens committed Feb 23, 2016
1 parent 53ca3a8 commit 969f282
Showing 5 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -28,15 +28,15 @@ def program_cooling(self):

@kernel
def cool_detect(self):
with interleave:
with parallel:
self.bd_sw.pulse(1*ms)
self.bdd_sw.pulse(1*ms)

self.bd_dds.set(self.cool_f)
self.bd_sw.pulse(100*us)

self.bd_dds.set(self.detect_f)
with interleave:
with parallel:
self.bd_sw.pulse(self.detect_t)
self.pmt.gate_rising(self.detect_t)

Original file line number Diff line number Diff line change
@@ -27,7 +27,7 @@ def run(self):
self.led.on()
else:
self.led.off()
with interleave:
with parallel:
with sequential:
self.dds0.set(100*MHz + 4*i*kHz)
self.ttl0.pulse(500*us)
2 changes: 1 addition & 1 deletion examples/master/repository/coredevice_examples/tdr.py
Original file line number Diff line number Diff line change
@@ -62,7 +62,7 @@ def many(self, n, p):
@kernel
def one(self, t, p):
t0 = now_mu()
with interleave:
with parallel:
self.pmt0.gate_both_mu(2*p)
self.ttl2.pulse_mu(p)
for i in range(len(t)):
4 changes: 2 additions & 2 deletions examples/sim/al_spectroscopy.py
Original file line number Diff line number Diff line change
@@ -24,15 +24,15 @@ def run(self):
delay(10*us)
self.laser_cooling.pulse(100*MHz, 100*us)
delay(5*us)
with interleave:
with parallel:
self.spectroscopy.pulse(self.spectroscopy_freq, 100*us)
with sequential:
delay(50*us)
self.spectroscopy_b.set(200)
delay(5*us)
while True:
delay(5*us)
with interleave:
with parallel:
self.state_detection.pulse(100*MHz, 10*us)
photon_count = self.pmt.count_gate(10*us)
if (photon_count < self.photon_limit_low
2 changes: 1 addition & 1 deletion examples/sim/simple_simulation.py
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ def build(self):

@kernel
def run(self):
with interleave:
with parallel:
with sequential:
self.a.pulse(100*MHz, 20*us)
self.b.pulse(200*MHz, 20*us)

0 comments on commit 969f282

Please sign in to comment.