Skip to content

Commit 88c9aea

Browse files
committed
Clean up
1 parent 49edc84 commit 88c9aea

File tree

3 files changed

+19
-31
lines changed

3 files changed

+19
-31
lines changed

exopy_pulses/pulses/shapes/gaussian_shape.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
# -----------------------------------------------------------------------------
3-
# Copyright 2015-2021 by ExopyPulses Authors, see AUTHORS for more details.
3+
# Copyright 2021 by ExopyPulses Authors, see AUTHORS for more details.
44
#
55
# Distributed under the terms of the BSD license.
66
#

exopy_pulses/tasks/tasks/instrs/views/transfer_pulse_loop_task_view.enaml

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
# -----------------------------------------------------------------------------
3-
# Copyright 2015-2018 by ExopyPulses Authors, see AUTHORS for more details.
3+
# Copyright 2015-2021 by ExopyPulses Authors, see AUTHORS for more details.
44
#
55
# Distributed under the terms of the BSD license.
66
#
@@ -65,7 +65,7 @@ enamldef VarEditor(Container):
6565
text := model.value
6666
entries_updater << model.task.list_accessible_database_entries
6767
tool_tip = EVALUATER_TOOLTIP
68-
68+
6969
enamldef LoopEditor(Container):
7070
""" Fields allowing to edit the sweep of a sequence.
7171

@@ -76,21 +76,11 @@ enamldef LoopEditor(Container):
7676
padding = 1
7777
constraints = [hbox(loop_name,
7878
param_start, param_start_val, param_stop,
79-
param_stop_val, param_points, param_points_val), align('v_center', loop_name, param_start)]
80-
# Label: lab:
81-
# hug_width = 'strong'
82-
# text << model.key
83-
# QtLineCompleter: val:
84-
# text := model.value
85-
# entries_updater << model.task.list_accessible_database_entries
86-
# tool_tip = EVALUATER_TOOLTIP
87-
79+
param_stop_val, param_points, param_points_val),
80+
align('v_center', loop_name, param_start)]
81+
8882
Field: loop_name:
8983
text := model.key
90-
# print(model)
91-
# items << list(task.sequence_vars.keys())
92-
# selected := task.loop_name
93-
# tool_tip = ("Name a variable to loop")
9484

9585
Label: param_start:
9686
text = 'Start value'
@@ -126,7 +116,7 @@ enamldef LoopEditor(Container):
126116

127117

128118
enamldef ObjectComboFieldCompleterEditor(Container):
129-
"""
119+
"""
130120

131121
"""
132122
#: Reference to the object holding the completion information.
@@ -335,7 +325,7 @@ enamldef TransferPulseLoopView(InstrTaskView): view:
335325
tstmp = os.path.getmtime(path)
336326
task.sequence_timestamp = tstmp
337327
task.sequence_path = path
338-
328+
339329
Label: operation_lab:
340330
text = 'Operation :'
341331
ObjectCombo: operation_val:
@@ -344,7 +334,7 @@ enamldef TransferPulseLoopView(InstrTaskView): view:
344334
tool_tip = ("Clean: delete all previously loaded waveforms\n"
345335
"Load: load waveforms in the waveform list of the AWG \n"
346336
"Enqueue: build a sequence from loaded waveforms")
347-
337+
348338
DictListEditor(LoopEditor): parameter:
349339
parameter.mapping := task.parameters
350340
parameter.operations = ['add','remove']
@@ -355,15 +345,15 @@ enamldef TransferPulseLoopView(InstrTaskView): view:
355345
ObjectCombo: run_mode_val:
356346
items << list(task.get_member('run_mode').items)
357347
selected := task.run_mode
358-
348+
359349
Label: trig_period_lab:
360350
text = 'Int trigger period (us)'
361351
QtLineCompleter: trig_period_val:
362352
entries_updater << task.list_accessible_database_entries
363353
text := task.trigger_period
364354
tool_tip = EVALUATER_TOOLTIP
365355
enabled << (task.run_mode=='Int Trig')
366-
356+
367357
Notebook: nb:
368358
tabs_closable = False
369359
visible << bool(task.sequence)

exopy_pulses/tasks/tasks/instrs/views/transfer_sequence_task_view.enaml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
# -----------------------------------------------------------------------------
3-
# Copyright 2015-2018 by ExopyPulses Authors, see AUTHORS for more details.
3+
# Copyright 2015-2021 by ExopyPulses Authors, see AUTHORS for more details.
44
#
55
# Distributed under the terms of the BSD license.
66
#
@@ -69,33 +69,31 @@ enamldef VarEditor(Container):
6969

7070
enamldef SequenceWindow(Window): seqwin:
7171
#attr task
72-
72+
7373
title = 'Sequences'
74-
74+
7575
initial_size = (1500,1000)
76-
76+
7777
Container:
7878
ScrollArea:
7979
Container:
8080
constraints = [vbox(ed, update, check, plot)]
81-
81+
8282
DictEditor(VarEditor): ed:
8383
ed.mapping = task.sequence_vars
8484
ed.attributes << {'task': task}
85-
85+
8686
PushButton: update:
8787
text = 'Update Plot'
8888
clicked ::
8989
variables = ed.mapping
90-
#canvas.figure = plot_sequences(task,variables)
9190
canvas.figure = task.compile_and_plot(variables)
92-
91+
9392
CheckBox: check:
9493
text = 'Toolbar Visible'
95-
checked := canvas.toolbar_visible
94+
checked := canvas.toolbar_visible
9695
Container: plot:
9796
MPLCanvas: canvas:
98-
#figure = plot_sequences(task,ed.mapping)
9997
figure = task.compile_and_plot(ed.mapping)
10098

10199
def validate_context_driver_pair(core, context, task, parent=None):

0 commit comments

Comments
 (0)