-
Notifications
You must be signed in to change notification settings - Fork 8
/
QDSpy_global.py
147 lines (121 loc) · 4.8 KB
/
QDSpy_global.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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
QDSpy module - global definitions
Copyright (c) 2013-2024 Thomas Euler
All rights reserved.
2024-06-15 - Fix for breaking change in `configparser`; now using
`ConfigParser` instead of `RawConfigParser`
"""
# ---------------------------------------------------------------------
__author__ = "[email protected]"
# ---------------------------------------------------------------------
QDSpy_versionStr = "QDSpy v0.91 beta"
QDSpy_copyrightStr = "(c) 2013-24 Thomas Euler"
QDSpy_appID = u"QDSpy3.v090beta.thomas_euler.eulerlab.de"
QDSpy_fullScrWinName = "QDSPY_STIMULUS"
QDSpy_isDebug = True
QDSpy_isGUIQuitWithDialog = False
QDSpy_workerMsgsToStdOut = True
QDSpy_noStimArg = False
QDSpy_dpiThresholdForHD = 110
QDSpy_useGUIScalingForHD = False # not needed in PyQt6
QDSpy_fontPntSizeHistoryHD = 9
QDSpy_fontPntSizeHistory = 8
QDSpy_winWidth = 640
QDSpy_winHeight = 480
QDSpy_screenIndex = 1
QDSpy_disableFullScrCmd = True
QDSpy_maxNumberOfScreens = 3
QDSpy_multiSamplingLevel = 0
QDSpy_graphicsAPI = 0 # 0=default, 1=pygletOnly
QDSpy_use3DTextures = 0
QDSpy_recordStim = 0 # 0=normal presentation
QDSpy_rec_f_downsample_x = 10
QDSpy_rec_f_downsample_t = 100
QDSpy_rec_setup_id = -1 # -1=n/a
QDSpy_useCtrlWin = False
QDSpy_ctrlWinScale = 0.2
QDSpy_showFPS = False
QDSpy_trackTiming = True
QDSpy_frRateStatsBufferLen = 18000 # 0=continous, >0=circular buffer
QDSpy_warnDroppedFrames = True
QDSpy_showStimInfo = False
QDSpy_incProcessPrior = True
QDSpy_tryForcingFSync = True
QDSpy_disableGarbageCollect = False
QDSpy_maxFrameDurDiff_s = 0.0001 # used when compiling
QDSpy_FrDurThreshold_ms = 5.0 # to detect dropped frames
QDSpy_refresh_Hz = 60.0
QDSpy_guiTimeOut = 5.0
QDSpy_cPickleProtocol = 3
QDSpy_cPickleFileExt = ".pickle"
QDSpy_fileVersionID = 8
QDSpy_stimFileExt = ".py"
QDSpy_pathStimuli = ".\\Stimuli\\"
QDSpy_autorunStimFileName = "__autorun"
QDSpy_autorunDefFileName = "__autorun_default_DO_NOT_DELETE"
QDSpy_movDescFileExt = ".txt"
QDSpy_movDescSect = "QDSMovie2Description"
QDSpy_movFrWidth = "FrWidth"
QDSpy_movFrHeight = "FrHeight"
QDSpy_movFrCount = "FrCount"
QDSpy_movComment = "Comment"
QDSpy_movIsFirstFrBottLeft = "isFirstFrBottomLeft"
QDSpy_movAllowedMovieExts = [".png", ".jpg"]
QDSpy_vidAllowedVideoExts = [".avi"]
QDSpy_pathApplication = ".\\"
QDSpy_iniFileName = "QDSpy.ini"
QDSpy_pathLogFiles = ".\\Logs\\"
QDSpy_logFileExtension = ".log"
QDSpy_doLogTimeStamps = True
QDSpy_pathShader = ".\\Shader\\"
QDSpy_shaderFileExt = ".cl"
QDSpy_shaderFileCmdTok = "#qds"
QDSpy_loadShadersOnce = True
QDSpy_KEY_KillPresent = [ord(b'Q'), ord(b'q')]
QDSpy_useUL_DIO = False
QDSpy_UL_boardType = "PCIDIO24" # "Arduino", "USB1024LS"
QDSpy_UL_boardNum = 0
QDSpy_UL_deviceNum = 6
QDSpy_UL_portOut = "A"
QDSpy_UL_portIn = "CLO"
QDSpy_UL_portOut_User = "B"
QDSpy_UL_pinMarkerOut = 2
QDSpy_UL_pinTriggerIn = 0
QDSpy_UL_pinUserOut1 = "3, USER1, 0"
QDSpy_UL_pinUserOut2 = "4, USER2, 0"
QDSpy_Arduino_baud = 230400
QDSpy_markerRGBA = "255,127,127,255"
QDSpy_antiMarkerRGBA = "0,0,0,255"
QDSpy_markerScrWidthFract = 16
QDSpy_markerShowOnScr = True
QDSpy_useScrOverlayMode = False
QDSpy_screenIndexGUI = 0
QDSpy_winWidth1_2 = 1280
QDSpy_winHeight1_2 = 480
QDSpy_xOffsetScr1_pix = 0
QDSpy_yOffsetScr1_pix = 0
QDSpy_xOffsetScr2Center_pix = 0
QDSpy_yOffsetScr2Center_pix = 0
QDSpy_vFlipScr1 = False
QDSpy_hFlipScr1 = False
QDSpy_vFlipScr2 = False
QDSpy_hFlipScr2 = False
QDSpy_MaxLightcrafterDev = 2
QDSpy_use_Lightcrafter = True
QDSpy_LEDNames_default = "red, green, blue"
QDSpy_LEDPeakWLs_default = "650, 510, 450"
QDSpy_LEDDevIndex_default = "0, 0, 0"
QDSpy_LEDIndex_default = "0, 1, 2"
QDSpy_LEDCurrents_default = "10, 10, 10"
QDSpy_LEDCurrents_max = "100, 100, 100"
QDSpy_LEDQtColors_default = "darkRed, darkGreen, darkBlue"
QDSpy_LCr_LogLevel = 0 #0=only errors, 1=important 2=all
QDSpy_allowGammaLUT_default = False
QDSpy_LUTFileExt = ".txt"
QDSpy_userGammaLUTFileName = "defaultGammaLUT"
QDSpy_allowCam = False
QDSpy_camWinGeometry = "20,30,300,200"
QDSpy_probing_center = 1
# ---------------------------------------------------------------------