Esempio n. 1
0
 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
Esempio n. 2
0
 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
Esempio n. 3
0
 def __repr__(self):
     override = {'parent': 'workflow_' + self.parent.label}
     return Configurable.__repr__(self, override)
Esempio n. 4
0
 def __repr__(self):
     override = {'parent': 'workflow_' + self.parent.label}
     return Configurable.__repr__(self, override)
Esempio n. 5
0
 def __repr__(self):
     override = {'category': 'category_' + self.category.name}
     return Configurable.__repr__(self, override)
Esempio n. 6
0
 def __repr__(self):
     override = {'category': 'category_' + self.category.name}
     return Configurable.__repr__(self, override)