from ligandparam.stages.abstractstage import AbstractStage
[docs]
class TestStage(AbstractStage):
""" This is an abstract class for all the stages. """
def __init__(self, name, **kwargs) -> None:
self.name = name
self._parse_inputoptions(kwargs)
return
[docs]
def _append_stage(self, stage: "AbstractStage") -> "AbstractStage":
return stage
[docs]
def _execute(self, dry_run=False):
""" This is a sample exectute method.
Parameters
----------
dry_run : bool, optional
If True, the stage will not be executed, but the function will print the commands that would
"""
print("This worked!")
return
[docs]
def _clean(self):
raise NotImplementedError("clean method not implemented")