Link test FSM runner script: Check status of optical modules
Currently the link test FSM runner script only checks the status of data-processing FPGAs. It should also check the status of optical modules.
Implementation notes:
- The 'main' function for this script is
main_link_test
insrc/swatch/cli/demonstrators.py
- The status of the data-processing FPGAs is checked on lines 275 and 285. This uses
System.connected_processors
(line 362,src/swatch/system.py
), which returns the data-processing FPGAs that are connected by the links declared in the config file. I'd suggest adding a similar property for optical modules (e.g.System.connected_optics
) and then changingsystem.connected_processors
tosystem.connected_processors + system.connected_optics
insrc/swatch/cli/demonstrators.py