diff --git a/spinnman/transceiver.py b/spinnman/transceiver.py index 3af4a0494..16c9e3b39 100644 --- a/spinnman/transceiver.py +++ b/spinnman/transceiver.py @@ -1059,17 +1059,13 @@ def _power_on_machine(self): self.power_on(bmp_connection.boards) return True - def power_on(self, boards=0, cabinet=0, frame=0): + def power_on(self, boards=0): """ Power on a set of boards in the machine. :param int boards: The board or boards to power on - :param int cabinet: the ID of the cabinet containing the frame, or 0 - if the frame is not in a cabinet - :param int frame: the ID of the frame in the cabinet containing the - board(s), or 0 if the board is not in a frame """ - self._power(PowerCommand.POWER_ON, boards, cabinet, frame) + self._power(PowerCommand.POWER_ON, boards) def power_off_machine(self): """ @@ -1086,28 +1082,20 @@ def power_off_machine(self): self.power_off(bmp_connection.boards) return True - def power_off(self, boards=0, cabinet=0, frame=0): + def power_off(self, boards=0): """ Power off a set of boards in the machine. :param int boards: The board or boards to power off - :param int cabinet: the ID of the cabinet containing the frame, or 0 - if the frame is not in a cabinet - :param int frame: the ID of the frame in the cabinet containing the - board(s), or 0 if the board is not in a frame """ - self._power(PowerCommand.POWER_OFF, boards, cabinet, frame) + self._power(PowerCommand.POWER_OFF, boards) - def _power(self, power_command, boards=0, cabinet=0, frame=0): + def _power(self, power_command, boards=0): """ Send a power request to the machine. :param PowerCommand power_command: The power command to send :param boards: The board or boards to send the command to - :param int cabinet: the ID of the cabinet containing the frame, or 0 - if the frame is not in a cabinet - :param int frame: the ID of the frame in the cabinet containing the - board(s), or 0 if the board is not in a frame """ connection_selector = self._bmp_selector timeout = ( @@ -1124,7 +1112,7 @@ def _power(self, power_command, boards=0, cabinet=0, frame=0): time.sleep(BMP_POST_POWER_ON_SLEEP_TIME) def read_fpga_register( - self, fpga_num, register, cabinet=0, frame=0, board=0): + self, fpga_num, register, board=0): """ Read a register on a FPGA of a board. The meaning of the register's contents will depend on the FPGA's configuration. @@ -1133,8 +1121,6 @@ def read_fpga_register( :param int register: Register address to read to (will be rounded down to the nearest 32-bit word boundary). - :param int cabinet: cabinet: the cabinet this is targeting - :param int frame: the frame this is targeting :param int board: which board to request the FPGA register from :return: the register data :rtype: int @@ -1144,8 +1130,7 @@ def read_fpga_register( ReadFPGARegister(fpga_num, register, board)) return response.fpga_register # pylint: disable=no-member - def write_fpga_register(self, fpga_num, register, value, - cabinet=0, frame=0, board=0): + def write_fpga_register(self, fpga_num, register, value, board=0): """ Write a register on a FPGA of a board. The meaning of setting the register's contents will depend on the FPGA's configuration. @@ -1155,20 +1140,16 @@ def write_fpga_register(self, fpga_num, register, value, Register address to read to (will be rounded down to the nearest 32-bit word boundary). :param int value: the value to write into the FPGA register - :param int cabinet: cabinet: the cabinet this is targeting - :param int frame: the frame this is targeting :param int board: which board to write the FPGA register to """ process = SendSingleCommandProcess(self._bmp_selector) process.execute( WriteFPGARegister(fpga_num, register, value, board)) - def read_bmp_version(self, board, cabinet=0, frame=0): + def read_bmp_version(self, board): """ Read the BMP version. - :param int cabinet: cabinet: the cabinet this is targeting - :param int frame: the frame this is targeting :param int board: which board to request the data from :return: the sver from the BMP """