# Monitor Centre Colour Calibration with PR-650

**URL:** <https://discourse.psychopy.org/t/monitor-centre-colour-calibration-with-pr-650/40829>\
**Category:** Builder\
**Created:** [July 17, 2024, 4:26am UTC](https://discourse.psychopy.org/t/monitor-centre-colour-calibration-with-pr-650/40829 "2024-07-17T04:26:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aaj](https://avatars.discourse-cdn.com/v4/letter/a/e495f1/32.png) [@aaj](https://discourse.psychopy.org/u/aaj)\
**Post date:** [July 17, 2024, 4:26am UTC](https://discourse.psychopy.org/t/monitor-centre-colour-calibration-with-pr-650/40829/1 "2024-07-17T04:26:53Z")

</div>

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](https://stackoverflow.com/questions/58569361/attributeerror-module-time-has-no-attribute-clock-in-python-3-8)). 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
