Skip to content

Commit

Permalink
Update Core.py
Browse files Browse the repository at this point in the history
Adjust Core.py to be compatible with new module name logic
  • Loading branch information
Marvmann authored Nov 6, 2023
1 parent bbc03a4 commit 8995d0d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/modules/Core.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,21 @@ class Core(ABC):
Core Module for QUARK used by all other Modules that are part of a benchmark process
"""

def __init__(self):
def __init__(self, name: str = None):
"""
Constructor method
:param name: name used to identify this QUARK module.
If not specified class name will be used as default
:type name: str
"""
self.submodule_options = []
self.sub_options = []
self.preprocessed_input = None
self.postprocessed_input = None
self.metrics = Metrics(self.__class__.__name__, os.path.relpath(sys.modules[self.__module__].__file__))
if name is None:
name = self.__class__.__name__
self.name = name
self.metrics = Metrics(name, os.path.relpath(sys.modules[self.__module__].__file__))

@abstractmethod
def get_parameter_options(self) -> dict:
Expand Down

0 comments on commit 8995d0d

Please sign in to comment.