Thank you very much for reporting this, I think it's something we need to fix for 12.8.
For now, you can work around it buy explicitly doing an update of the electrodes.
Make the following changes to your script:
1. After the definition on the electrode calculators, update them manually:
left_electrode.setCalculator(left_electrode_calculator)
left_electrode.update()
right_electrode.setCalculator(right_electrode_calculator)
right_electrode.update()
2. For safety, remove the lines
electrode_calculators=
[left_electrode_calculator, right_electrode_calculator],
from the definition of the device calculator.
Run the script.
The charged electrodes is brand new feature, so we are very grateful for any feedback users can provide on using it.