check_switch_ids_are_not_zero¶
Summary¶
- check_switch_ids_are_not_zero(frbs: list[BoardFile]) str¶
Checks that the District IDs of all Switch squares in all frb files are not 0, unless there are only two frb files.
- Parameters:
frbs (list[BoardFile]) – A list of BoardFile objects representing one or more .frb files.
- Returns:
A string containing the error message if the check fails, or an empty string if it passes.
- Return type:
str
Importing¶
from cs_board_tools.validation.board import check_switch_ids_are_not_zero