From cdec11090a4a46769732493be64bd9c1e4123fe2 Mon Sep 17 00:00:00 2001 From: "Christian Y. Brenninkmeijer" Date: Wed, 17 Apr 2024 07:05:23 +0100 Subject: [PATCH] fix add_monitor_core to all_cores --- spinn_machine/data/machine_data_writer.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spinn_machine/data/machine_data_writer.py b/spinn_machine/data/machine_data_writer.py index f5aec30a..080111e1 100644 --- a/spinn_machine/data/machine_data_writer.py +++ b/spinn_machine/data/machine_data_writer.py @@ -105,7 +105,7 @@ def set_machine_generator(self, machine_generator: Callable[[], None]): raise TypeError("machine_generator must be callable") self.__data._machine_generator = machine_generator - def add_monitor_core(self, all_cores: bool): + def add_monitor_core(self, all_chips: bool): """ Accepts a simple of the monitor cores to be added. @@ -114,12 +114,12 @@ def add_monitor_core(self, all_cores: bool): Only affect is to change the numbers reported by the get_all/ethernet_monitor methods. - :param bool all_cores: - If True assumes that this Vertex will be placed on all cores + :param bool all_chips: + If True assumes that this Vertex will be placed on all chips including Ethernet ones. If False assumes that this Vertex type will only be placed on Ethernet Vertices """ self.__data._ethernet_monitor_cores += 1 - if all_cores: + if all_chips: self.__data._all_monitor_cores += 1