Skip to content

Commit a31aedc

Browse files
authored
Merge pull request #23 from nemocrys/arvedes/issue18
2 parents dfd3337 + f6246cd commit a31aedc

File tree

2 files changed

+56
-52
lines changed

2 files changed

+56
-52
lines changed

config_template.yml

Lines changed: 52 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,58 @@ logging:
1111
filemode: a # w: overwrite old logfile, a: append to existing logfile
1212
# encoding: 'utf-8' # only available for python >= 3.9
1313
devices:
14+
Process-Condition-Logger:
15+
v_pull:
16+
unit: mm/min
17+
label: Pulling velocity
18+
# default: 0
19+
T_ctrl:
20+
unit: °C
21+
label: Control temperature
22+
# default: 0
23+
OP:
24+
label: Control operating point
25+
# default: 0
26+
pos_top:
27+
label: Top axis position
28+
# default: 0
29+
rot_crystal:
30+
unit: rpm
31+
label: Crystal rotation
32+
# default: 0
33+
rot_crucible:
34+
unit: rpm
35+
label: Crucible rotation
36+
# default: 0
37+
pressure:
38+
unit: bar
39+
label: Furnace pressure
40+
# default: 1
41+
door:
42+
label: Furnace door
43+
values:
44+
- open
45+
- closed
46+
# default: open
47+
gas:
48+
label: Gas atmosphere
49+
values:
50+
- air
51+
- argon
52+
- nitrogen
53+
- vacuum
54+
# default: air
55+
tag:
56+
label: Process status tag
57+
values:
58+
- heating up
59+
- seeding
60+
- growing
61+
- cooling down
62+
# default: heating up
63+
comment:
64+
label: Comment
65+
# default: "Multilog measurement"
1466
DAQ-6510:
1567
serial-interface:
1668
port: /dev/ttyr00
@@ -235,54 +287,3 @@ devices:
235287
emissivity: 0.95
236288
transmissivity: 1.0
237289
T-ambient: -1000 # Ambient temperature, setting invalid values (below -273,15 degrees) forces the library to take its own measurement values. # TODO what does that mean?
238-
Process-Condition-Logger:
239-
v_pull:
240-
unit: mm/min
241-
label: pulling velocity
242-
default: 0
243-
T_ctrl:
244-
unit: °C
245-
label: control temperature
246-
default: 0
247-
OP:
248-
label: control operating point
249-
default: 0
250-
pos_top:
251-
label: top axis position
252-
default: 0
253-
rot_crystal:
254-
unit: rpm
255-
label: crystal rotation
256-
default: 0
257-
rot_crucible:
258-
unit: rpm
259-
label: crucible rotation
260-
default: 0
261-
pressure:
262-
unit: bar
263-
label: furnace pressure
264-
default: 1
265-
door:
266-
label: furnace door
267-
values:
268-
- open
269-
- closed
270-
default: open
271-
gas:
272-
label: gas atmosphere
273-
values:
274-
- air
275-
- argon
276-
- nitrogen
277-
- vacuum
278-
default: air
279-
tag:
280-
label: process status tag
281-
values:
282-
- heating up
283-
- seeding
284-
- growing
285-
- cooling down
286-
default: heating up
287-
comment:
288-
default: "Multilog measurement"

multilog/view/process_condition_logger.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ def __init__(self, process_logger: ProcessConditionLogger, parent=None):
5151
if "values" in process_logger.config[condition]:
5252
input_box = QComboBox()
5353
input_box.addItems(process_logger.config[condition]["values"])
54-
input_box.setCurrentText(default_value)
54+
if default_value == "":
55+
input_box.setCurrentIndex(-1)
56+
else:
57+
input_box.setCurrentText(default_value)
5558
input_box.currentIndexChanged.connect(
5659
partial(self.update_combo_condition, condition)
5760
)

0 commit comments

Comments
 (0)