Skip to content

Commit

Permalink
use classmethod
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Oct 31, 2024
1 parent 9bf0bf0 commit d8347f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spinn_utilities/data/utils_data_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
"""
Expand Down

0 comments on commit d8347f9

Please sign in to comment.