How does one suppress this warning, which is output to the terminal each time I run a task?
10.8500 WARNING This monitor has not been color-calibrated. Using default DKL conversion matrix.
I’m not worried about color calibration, but would like to use the DKL colorspace. Thanks!
1 Like
Reiner
2
Same question here, unfortunately:
warnings.filterwarnings(“ignore”)
does not seem to work.
Psychopy complains because you are not supplying a conversion matrix from DLK to RGB.
See here in the source code:
So, perhaps you can prevent the warning by supplying the “default conversion matrix” upfront.
# ... code above
my_monitor = monitors.Monitor(name=MONITOR_NAME)
# for `conversionMatrix`, see:
# https://github.com/psychopy/psychopy/blob/148c730ccea10cb2183fdc94e843e278604b49ca/psychopy/tools/colorspacetools.py#L416-L421
conversionMatrix = numpy.asarray([
# (note that dkl has to be in cartesian coords first!)
# LUMIN %L-M %L+M-S
[1.0000, 1.0000, -0.1462], # R
[1.0000, -0.3900, 0.2094], # G
[1.0000, 0.0180, -1.0000], # B
])
my_monitor.setDKL_RGB(conversionMatrix)
# ... continue code
I haven’t tested this myself.