Skip to content

addition of two looping variables ignores second variable

Created by: sldesnoo-Delft

When 2 looping variables on different are being added, then only the first one is in the result.

Example to reproduce: from pulse_lib.base_pulse import pulselib import pulse_lib.segments.utility.looping as lp from pulse_lib.tests.mock_m3202a import MockM3202A

awg1 = MockM3202A('AWG1',0,1) pulse = pulselib()

pulse.add_awgs('AWG1', awg1) pulse.define_channel('P1','AWG1', 1) pulse.finish_init()

pulse_container = pulse.mk_segment()

v1 = lp.linspace(0, 100, 11, axis=0, unit = 'mV', name='V') v2 = lp.linspace(0.5, 10.5, 11, axis=1, unit = 'mV', name='V')

pulse_container.P1.add_block(0, 100, v1 + v2) pulse_container.P1.setpoints

Output: setpoint(axis=0, label=('V',), unit=('mV',), setpoint=(array([ 0., 10., 20., 30., 40., 50., 60., 70., 80., 90., 100.]),))

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information