def revise_actions(self):
    """
    Revise lists of actions and cleanups accounting for -e --exclude -a --add
    Alter the copies, results might differ from self.module.actions.
    This must be separate from __init__, call after all modules imported
     to account for all pymodel config modules 
    Recall that self.actions can include shared but unused actions
    """
    if self.exclude:
      self.actions = [ a for a in self.actions if a.__name__ not in self.exclude ]
    if self.include:
      self.actions = [ a for a in self.actions if a.__name__ in self.include ]
    if self.exclude:
      self.cleanup = [ c for c in self.cleanup if c.__name__ not in self.exclude ]
    if self.include:
      self.cleanup = [ c for c in self.cleanup if c.__name__ in self.include ]
dataset/ETHPy150Open jon-jacky/PyModel/pymodel/model.py/Model.revise_actions/original