From d8347f929097537836a4b9637c894adbbd9e79db Mon Sep 17 00:00:00 2001 From: "Christian Y. Brenninkmeijer" Date: Thu, 31 Oct 2024 06:09:14 +0000 Subject: [PATCH] use classmethod --- spinn_utilities/data/utils_data_writer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spinn_utilities/data/utils_data_writer.py b/spinn_utilities/data/utils_data_writer.py index b723c3cf..01cc7ba2 100644 --- a/spinn_utilities/data/utils_data_writer.py +++ b/spinn_utilities/data/utils_data_writer.py @@ -212,14 +212,14 @@ def data_specification_loaded(self) -> None: """ self.__data._requires_data_generation = False - def set_requires_data_generation( # pylint: disable=arguments-differ - self) -> None: + @classmethod + def set_requires_data_generation(cls) -> None: """ Sets `requires_data_generation` to True. Set to False after data is loaded """ - self.__data._requires_data_generation = True + cls.__data._requires_data_generation = True def request_stop(self) -> None: """