Dear all,
we just found a bug in “\monitors\calibTools.py” which affects, among others, the function of MonitorCenter.py.
Symptom: MonitorCenter.py will not show any of the existing calibration files. Any previously created calibration files are, however, correctly loaded when invoking monitors.Monitor() with the name of an existing calibration file.
Cause: The function calibTools.getAllMonitors() only looks for calibration files with the file extension ‘.calib’ which have been replaced by ‘.json’ as of PsychoPy3.
Bug fix: Open the file “\monitors\calibTools.py”. In line 1152 you’ll find the following code:
[1152] monitorList = glob.glob(os.path.join(monitorFolder, '*.calib'))
Replace this with the following lines, without the leading [#]:
[1152] if constants.PY3:
[1153] ext = ".json"
[1154] else:
[1155] ext = ".calib"
[1156]
[1157] monitorList = glob.glob(os.path.join(monitorFolder, '*'+ext))
That out of the way, I’m unfortunately a total noob to GitHub but would like to contribute this bugfix to the codebase. I have never worked with GitHub so I’m a bit lost. Can someone point me to a ressource describing how to contribute to the PsychoPy project via GitHub?
Best wishes,
Malte