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+
6969enamldef 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
128118enamldef 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)
0 commit comments