Monitor Centre Colour Calibration with PR-650

I was trying to perform a Chromatic Calbration in the Monitor Centre (PsychoPy Standalone version 2024.1.5, under Windows 10) using the PR-650. After hitting a key to start the process once the initial red calibration square was displayed, Psychopy exited with the following message:

Traceback (most recent call last):
File “C:\Users\Optological\AppData\Local\Programs\PsychoPy\lib\site-packages\psychopy\monitors\MonitorCenter.py”, line 922, in onCalibColorBtn
nm, spectra = monitors.getRGBspectra(stimSize=0.5,
File “C:\Users\Optological\AppData\Local\Programs\PsychoPy\lib\site-packages\psychopy\monitors\calibTools.py”, line 1147, in getRGBspectra
photom.measure()
File “C:\Users\Optological\AppData\Roaming\psychopy3\packages\psychopy-photoresearch\psychopy_photoresearch\pr.py”, line 168, in measure
t1 = time.clock()
AttributeError: module ‘time’ has no attribute ‘clock’

Looking elsewhere, it seems “time.clock()” is a deprecated function in Python (AttributeError: module 'time' has no attribute 'clock' in Python 3.8 - Stack Overflow). There was only one instance of time.clock in the file referenced in the error message (“…psychopy_photoresearch\pr.py”) and — after swapping “time.clock” for “time.time” (based on the same stackoverflow reference) — the colour calibration seemed to work fine.

Assuming this is general problem, and my fix is appropriate, I would appreciate assistance in flagging this for updating in the next version so that others can benefit: I’m new to the forum, and have no experience with GitHub, version control, etc.

Cheers,

Andrew