-
Notifications
You must be signed in to change notification settings - Fork 2
/
testExamplePORIS_savemem.py
106 lines (100 loc) · 4.71 KB
/
testExamplePORIS_savemem.py
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
from examplePORIS import *
model = examplePORIS()
sysExample = model.sysInstrument
print("\n\n\nSys:",sysExample.name)
print("\nmodes:",sysExample.modes)
print("\nselected:",sysExample.selectedMode.name)
'''
print("\n\n\nPhotometry:",mdExamplePhotometry.name)
print("\nsubmodes:",mdExamplePhotometry.submodes)
print("\n\n\nSys:",sysFilter.name)
print("\nmodes:",sysFilter.modes)
print("\nselected:",sysFilter.selectedMode.name)
print("\n\n\nSys:",sysDetector.name)
print("\nmodes:",sysDetector.modes)
print("\nselected:",sysDetector.selectedMode.name)
print("\n\n\nParam:",prClassicFilters.name)
print("\nmodes:",prClassicFilters.modes)
print("\nselected:",prClassicFilters.selectedMode.name)
print("\nvalues:",prClassicFilters.values)
print("\nselected:",prClassicFilters.selectedValue.name)
print("\n\n\nParam:",prDispersion.name)
print("\nmodes:",prDispersion.modes)
print("\nselected:",prDispersion.selectedMode.name)
print("\nvalues:",prDispersion.values)
print("\nselected:",prDispersion.selectedValue.name)
print("\n\n\nParam:",prBinning.name)
print("\nmodes:",prBinning.modes)
print("\nselected:",prBinning.selectedMode.name)
print("\nvalues:",prBinning.values)
print("\nselected:",prBinning.selectedValue.name)
print("\n\n\nParam:",prExpTime.name)
print("\nmodes:",prExpTime.modes)
print("\nselected:",prExpTime.selectedMode.name)
print("\nvalues:",prExpTime.values)
print("\nselected:",prExpTime.selectedValue.name)
print("\n\n\nParam:",prMasks.name)
print("\nmodes:",prMasks.modes)
print("\nselected:",prMasks.selectedMode.name)
print("\nvalues:",prMasks.values)
print("\nselected:",prMasks.selectedValue.name)
print("\n\nSquare binning values:",mdBinningSquare.values)
'''
mdExamplePhotometry = sysExample.getModeFromName("Photometry")
print(mdExamplePhotometry)
sysExample.setMode(mdExamplePhotometry)
'''
print("\n\n\nSelected filter:",prClassicFilters.selectedValue.name)
print("\n\n\nSelected dispersion:",prDispersion.selectedValue.name)
print("\n\n\nSelected detector mode:",sysDetector.selectedMode.name)
print("\n\n\nSelected binning mode:",prBinning.selectedMode.name)
'''
prBinning = sysExample.getDescendantParamFromName("Binning")
print("\n\n\nSelected binning:",prBinning.selectedValue.name)
prDispersion = sysExample.getDescendantParamFromName("Dispersion")
print("\n\n\nSelected dispersion:",prDispersion.selectedValue.name)
'''
print("\n\n\nSelected expTime:",prExpTime.selectedValue.name)
print("\n\n\nSelected mask:",prMasks.selectedValue.name)
'''
vlBinning2x2 = prBinning.getValueFromName("2x2")
prBinning.setValue(vlBinning2x2)
print("\n\n\nSelected binning:",prBinning.selectedValue.name)
print("\n\n\nSelected dispersion:",prDispersion.selectedValue.name)
vlBinning1x2 = prBinning.getValueFromName("1x2")
prBinning.setValue(vlBinning1x2)
print("\n\n\nSelected binning:",prBinning.selectedValue.name)
print("\n\n\nSelected dispersion:",prDispersion.selectedValue.name)
mdExampleSpectroscopy = sysExample.getModeFromName("Spectroscopy")
sysExample.setMode(mdExampleSpectroscopy)
print("\n\n\nSelected binning:",prBinning.selectedValue.name)
print("\n\n\nSelected dispersion:",prDispersion.selectedValue.name)
prBinning.setValue(vlBinning1x2)
print("\n\n\nSelected binning:",prBinning.selectedValue.name)
print("\n\n\nSelected dispersion:",prDispersion.selectedValue.name)
sysExample.setMode(mdExamplePhotometry)
print("\n\n\nSelected binning:",prBinning.selectedValue.name)
print("\n\n\nSelected dispersion:",prDispersion.selectedValue.name)
'''
print("\n\n\nSelected Example mode:",sysExample.selectedMode.name)
print("\n\n\nSpectroscopy submodes:",mdExampleSpectroscopy.submodes)
print("\n\n\nSelected filter:",prClassicFilters.selectedValue.name)
print("\n\n\nSelected dispersion:",prDispersion.selectedValue.name)
print("\n\n\nSelected detector mode:",sysDetector.selectedMode.name)
print("\n\n\nSelected binning mode:",prBinning.selectedMode.name)
print("\n\n\nSelected binning:",prBinning.selectedValue.name)
print("\n\n\nSelected expTime:",prExpTime.selectedValue.name)
print("\n\n\nSelected masks mode:",prMasks.selectedMode.name)
print("\n\n\nSelected mask:",prMasks.selectedValue.name)
prBinning.setValue(vlBinning1x2)
print("\n\n\nSelected Example mode:",sysExample.selectedMode.name)
print("\n\n\nSpectroscopy submodes:",mdExampleSpectroscopy.submodes)
print("\n\n\nSelected filter:",prClassicFilters.selectedValue.name)
print("\n\n\nSelected dispersion:",prDispersion.selectedValue.name)
print("\n\n\nSelected detector mode:",sysDetector.selectedMode.name)
print("\n\n\nSelected binning mode:",prBinning.selectedMode.name)
print("\n\n\nSelected binning:",prBinning.selectedValue.name)
print("\n\n\nSelected expTime:",prExpTime.selectedValue.name)
print("\n\n\nSelected masks mode:",prMasks.selectedMode.name)
print("\n\n\nSelected mask:",prMasks.selectedValue.name)
'''