@@ -11,25 +11,25 @@ def setUp(self):
1111 hold = ConstantPT (10 ** 6 , {'a' : '-1. + idx * 0.01' })
1212 self .pulse_template = hold .with_iteration ('idx' , 200 )
1313
14- self .program = LinSpaceTopLevel (LinSpaceIter (
14+ self .program = LinSpaceTopLevel (body = ( LinSpaceIter (
1515 to_be_stepped = False ,
1616 length = 200 ,
1717 body = (LinSpaceHold (
18- channels = ('a' ,'b' ),
19- bases = ( - 1. ,) ,
20- factors = (( 0.01 ,),) ,
18+ channels = ('a' ,),
19+ bases = { 'a' : - 1.0 } ,
20+ factors = { 'a' : ( 0.01 ,)} ,
2121 duration_base = TimeType (10 ** 6 ),
2222 duration_factors = None
2323 ),)
24- ))
24+ ),) )
2525
2626 key = DepKey .from_voltages ((0.01 ,), DEFAULT_INCREMENT_RESOLUTION )
2727
2828 self .commands = [
29- Set (0 , - 1.0 , key ),
29+ Set ('a' , ResolutionDependentValue ((),(), - 1.0 ), key = key ),
3030 Wait (TimeType (10 ** 6 )),
3131 LoopLabel (0 , 199 ),
32- Increment (0 , 0.01 , key ),
32+ Increment ('a' , ResolutionDependentValue (( 0.01 ,),( 1 ,), 0.0 ), key = key ),
3333 Wait (TimeType (10 ** 6 )),
3434 LoopJmp (0 )
3535 ]
@@ -42,8 +42,8 @@ def test_program(self):
4242 def test_commands (self ):
4343 program_builder = LinSpaceBuilder ()
4444 program = self .pulse_template .create_program (program_builder = program_builder )
45- commands = to_increment_commands (program )
46- self .assertEqual (self .commands , commands )
45+ self . commands_to_test = to_increment_commands (program )
46+ self .assertEqual (self .commands , self . commands_to_test )
4747
4848
4949class TimeSweepTest (TestCase ):
0 commit comments