def __repr__(self): s = "from lobster import cmssw\nfrom lobster.core import *\n\n" for cat in self.categories: if cat.name == 'merge': continue s += "category_{} = {}\n\n".format(cat.name, repr(cat)) for wflow in self.workflows: s += "workflow_{} = {}\n\n".format(wflow.label, repr(wflow)) override = {'workflows': '[{}]'.format( ', '.join(['workflow_' + w.label for w in self.workflows]))} s += "config = " + Configurable.__repr__(self, override) return s
def __repr__(self): s = "from lobster import cmssw\nfrom lobster.core import *\n\n" for cat in self.categories: if cat.name == 'merge': continue s += "category_{} = {}\n\n".format(cat.name, repr(cat)) for wflow in self.workflows: s += "workflow_{} = {}\n\n".format(wflow.label, repr(wflow)) override = { 'workflows': '[{}]'.format(', '.join( ['workflow_' + w.label for w in self.workflows])) } s += "config = " + Configurable.__repr__(self, override) return s
def __repr__(self): override = {'parent': 'workflow_' + self.parent.label} return Configurable.__repr__(self, override)
def __repr__(self): override = {'category': 'category_' + self.category.name} return Configurable.__repr__(self, override)