Skip to content

Commit 56fc7a4

Browse files
committedJul 13, 2015
TTLInOut: timestamp -> timestamp_mu
1 parent 820ff2d commit 56fc7a4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

Diff for: ‎artiq/coredevice/ttl.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def count(self):
195195
return count
196196

197197
@kernel
198-
def timestamp(self):
198+
def timestamp_mu(self):
199199
"""Poll the RTIO input and returns an event timestamp, according to
200200
the gating.
201201

Diff for: ‎artiq/test/coredevice.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def run(self):
2626
delay(1*us)
2727
t0 = now_mu()
2828
self.ttl_inout.pulse(1*us)
29-
self.set_rtt(mu_to_seconds(self.ttl_inout.timestamp() - t0))
29+
self.set_rtt(mu_to_seconds(self.ttl_inout.timestamp_mu() - t0))
3030

3131

3232
class Loopback(EnvExperiment):
@@ -48,7 +48,7 @@ def run(self):
4848
delay(1*us)
4949
t0 = now_mu()
5050
self.loop_out.pulse(1*us)
51-
self.set_rtt(mu_to_seconds(self.loop_in.timestamp() - t0))
51+
self.set_rtt(mu_to_seconds(self.loop_in.timestamp_mu() - t0))
5252

5353

5454
class ClockGeneratorLoopback(EnvExperiment):

0 commit comments

Comments
 (0)
Please sign in to comment.