-
Notifications
You must be signed in to change notification settings - Fork 6
/
GUIConfig.py.example
80 lines (70 loc) · 2.95 KB
/
GUIConfig.py.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
'''
Configuration settings for Grapher gui
'''
import pyqtgraph as pg
pg.setConfigOption('background', 'k')
pg.setConfigOption('foreground', 'y')
class traceListConfig():
def __init__(self, background_color = 'white', use_trace_color = False):
self.background_color = background_color
self.use_trace_color = use_trace_color
class graphConfig():
def __init__(self, name, ylim=[0,1], isScrolling=False, max_datasets = 20,
show_points = True, grid_on = False, scatter_plot='all', isImages=False,
isHist=False, line_param=None, vline=None, vline_param=None, hline=None, hline_param=None):
self.name = name
self.ylim = ylim
self.isScrolling = isScrolling
self.max_datasets = max_datasets
self.graphs = 1 # just a single graph
self.show_points = show_points
self.grid_on = grid_on
self.scatter_plot = scatter_plot
self.isImages = isImages
self.isHist = isHist
self.line_param = line_param
self.vline = vline
self.vline_param = vline_param
self.hline = hline
self.hline_param = hline_param
class gridGraphConfig():
def __init__(self, tab, config_list):
self.tab = tab
self.config_list = config_list[0::3]
self.row_list = config_list[1::3]
self.column_list = config_list[2::3]
self.graphs = len(self.config_list)
tabs =[
gridGraphConfig('current', [graphConfig('current', max_datasets = 1), 0, 0]),
gridGraphConfig('pmt', [graphConfig('pmt', ylim=[0,30], isScrolling=True, max_datasets = 1, show_points = False), 0, 0]),
gridGraphConfig('spectrum', [graphConfig('spectrum'), 0, 0]),
gridGraphConfig('rabi', [graphConfig('rabi'), 0, 0]),
gridGraphConfig('calibrations', [
graphConfig('car1'), 0, 0,
graphConfig('car2'), 0, 1,
graphConfig('radial1'), 1, 0,
graphConfig('radial2'), 1, 1]),
gridGraphConfig('molmer-sorensen',[
graphConfig('ms_time'), 0, 0]),
gridGraphConfig('vaet',[
graphConfig('vaet_time'), 0, 0,
graphConfig('vaet_delta'), 0, 1]),
gridGraphConfig('local_stark',[
graphConfig('ms_local_stark'), 0, 0,
graphConfig('ms_local_stark_detuning'), 1, 0,
graphConfig('vaet_local_stark'), 0, 1,
graphConfig('vaet_local_stark_detuning'), 1, 1]),
gridGraphConfig('parity', [graphConfig('parity'), 0, 0]),
gridGraphConfig('ramsey', [graphConfig('ramsey'), 0, 0])
]
# gridGraphConfig('testgrid',
# [
# graphConfig('fig1'), 0, 0,
# graphConfig('fig2'), 0, 1,
# graphConfig('fig3'), 2, 2,
# graphConfig('fig4'), 1, 2
# ]),
# gridGraphConfig('testgrid2',
# [
# graphConfig('fig1123'), 0, 0,
# ])