Manually enter calibrations - LMS->RGB crash

Hi! I’m trying to enter an LMS->RGB matrix into a new monitor definition.

OS MacOS 10.13.6
PsychoPy version 2022.2.5
**Standard Standalone? y
What are you trying to achieve?:
Manually enter values into the LMS->RGB matrix in the monitor centre. I have an oceanoptics device which I can use to create those matrices. When I start typing numbers into each box I get an error:

Traceback (most recent call last):
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/monitors/MonitorCenter.py”, line 777, in onChangeLMSgrid
KeyError: ‘lms_rgb’

What did you try to make it work?: Tab not enter on each box. In fact the numbers ‘stick’ in the box if I carry on but are not saved when I save the monitor. I thought I might have to add in a gamma calibration first but that does not seem to help.

What specifically went wrong when you tried that?:
Include pasted full error message if possible. “That didn’t work” is not enough information.

Not a solution but a possibility: If the issue is in the gui then it’s perfectly easy for us to generate JSON files directly. In that case I’d need to see a ‘sample’ JSON file with color calibration fields in it - do you have such a thing?
Thanks
A