Commit 84d645c4 authored by payno's avatar payno
Browse files

[core][Process] fix signature of some Process function

- program_name, program_version and definition are static functions
parent f6e592fe
...@@ -236,13 +236,16 @@ class Process(Task): ...@@ -236,13 +236,16 @@ class Process(Task):
assert isinstance(_xas_obj, XASObject) assert isinstance(_xas_obj, XASObject)
return _xas_obj return _xas_obj
def program_name(self): @staticmethod
def program_name():
raise NotImplementedError("Base class") raise NotImplementedError("Base class")
def program_version(self) -> str: @staticmethod
def program_version() -> str:
"""version of the program used for this processing""" """version of the program used for this processing"""
raise NotImplementedError("Base class") raise NotImplementedError("Base class")
@staticmethod
def definition(self) -> str: def definition(self) -> str:
"""definition of the process""" """definition of the process"""
raise NotImplementedError("Base class") raise NotImplementedError("Base class")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment