Skip to content

Commit

Permalink
Fix pulse plotting
Browse files Browse the repository at this point in the history
  • Loading branch information
M-superposition authored and terrorfisch committed Aug 23, 2018
1 parent e787690 commit 6278e3b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion MATLAB/+qc/plot_pulse.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
'sample_rate', plsdata.awg.sampleRate, ... % in 1/s, converted to 1/ns below
'channel_names', {{}}, ... % names of channels to plot, all if empty
'parameters', struct(), ...
'channel_mapping', py.None, ...
'channel_mapping', [], ...
'window_mapping' , py.None, ...
'fig_id', plsdata.qc.figId, ...
'subplots', [121 122], ...
Expand All @@ -23,6 +23,10 @@

args = util.parse_varargin(varargin, defaultArgs);

if isempty(args.channel_mapping)
args.channel_mapping = py.dict(py.zip(pulse.defined_channels, pulse.defined_channels));
end

args.sample_rate = args.sample_rate * 1e-9; % convert to 1/ns
instantiatedPulse = qc.instantiate_pulse(pulse, 'parameters', args.parameters, 'channel_mapping', args.channel_mapping, 'window_mapping', args.window_mapping);

Expand Down

0 comments on commit 6278e3b

Please sign in to comment.