Skip to content

Commit

Permalink
Replace .duration on pulse templates by py.getattr
Browse files Browse the repository at this point in the history
  • Loading branch information
pcerf authored and terrorfisch committed Aug 27, 2018
1 parent aa6e0bc commit 2e15ffc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MATLAB/+qc/awg_program.m
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@

if ~isempty(add_marker)
marker_pulse = py.qctoolkit.pulses.PointPT({{0, 1},...
{pulse_template.duration, 1}}, add_marker);
{py.getattr(pulse_template, 'duration'), 1}}, add_marker);
pulse_template = py.qctoolkit.pulses.AtomicMultiChannelPT(pulse_template, marker_pulse);

for ii = 1:numel(add_marker)
Expand Down
2 changes: 1 addition & 1 deletion MATLAB/+qc/pulse_seq.m
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@

% Add fill if fill_param not empty
if ~isempty(args.fill_param)
duration = pulse.duration;
duration = py.getattr(pulse, 'duration');
if qc.is_instantiated_pulse(args.fill_pulse)
fill_pulse = args.fill_pulse;
else
Expand Down

0 comments on commit 2e15ffc

Please sign in to comment.