Skip to content

Commit 96fbb77

Browse files
committed
Remove dead code and comments
1 parent 47905c0 commit 96fbb77

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

tests/program/linspace_tests.py

-13
Original file line numberDiff line numberDiff line change
@@ -80,34 +80,21 @@ def setUp(self):
8080
# LinSpaceHold(bases=(-.4),factors=None,duration_base=TimeType(10**6),duration_factors=None),
8181
# LinSpaceHold(bases=(-1.,),factors=((0.01,),),duration_base=TimeType(10**6),duration_factors=None)
8282
),)
83-
84-
85-
key = DepKey.from_voltages((0.01,), DEFAULT_INCREMENT_RESOLUTION)
8683

8784
self.commands = [
8885
Set(channel=0, value=-0.4, key=DepKey(factors=())),
8986
Wait(duration=TimeType(100000, 1)),
90-
#here is what currently happens:
9187
Set(channel=0, value=-1.0, key=DepKey(factors=(10000000,))),
9288
Wait(duration=TimeType(1000000, 1)),
9389
LoopLabel(idx=0, count=9),
9490
Wait(duration=TimeType(1000000, 1)),
9591
LoopJmp(idx=0),
96-
#however, i think this is what should happen (maybe also with an additional "Set" before,
97-
#which might cause complications if omitted in other contexts like AWG amplitude:
98-
#LoopLabel(idx=0, count=10),
99-
#Set(channel=0, value=-1.0, key=DepKey(factors=(10000000,))),
100-
#Wait(duration=TimeType(1000000, 1)),
101-
#LoopJmp(idx=0),
102-
10392
LoopLabel(idx=1, count=199),
10493
Set(channel=0, value=-0.4, key=DepKey(factors=())),
10594
Wait(duration=TimeType(100000, 1)),
10695
Increment(channel=0, value=0.01, dependency_key=DepKey(factors=(10000000,))),
10796
Wait(duration=TimeType(1000000, 1)),
10897
LoopLabel(idx=2, count=9),
109-
#also here, an increment 0 may be helpful (at least to be able to force).
110-
#Increment(channel=0, value=0, dependency_key=DepKey(factors=(10000000,))),
11198
Wait(duration=TimeType(1000000, 1)),
11299
LoopJmp(idx=2),
113100
LoopJmp(idx=1)

0 commit comments

Comments
 (0)