def __init__(self, name, id, xsecs=None, processes=None, color=None, label=None, label_short=None, is_data=False, tags=None, aux=None, context=None): UniqueObject.__init__(self, name, id, context=context) CopyMixin.__init__(self) AuxDataMixin.__init__(self, aux=aux) TagMixin.__init__(self, tags=tags) DataSourceMixin.__init__(self, is_data=is_data) LabelMixin.__init__(self, label=label, label_short=label_short) ColorMixin.__init__(self, color=color) # instance members self._xsecs = {} # set initial values if xsecs is not None: self.xsecs = xsecs # set initial child processes if processes is not None: self.extend_processes(processes)
def __init__(self, name, id, campaign=None, info=None, processes=None, label=None, label_short=None, is_data=False, tags=None, aux=None, context=None, **kwargs): UniqueObject.__init__(self, name, id, context=context) CopyMixin.__init__(self) AuxDataMixin.__init__(self, aux=aux) TagMixin.__init__(self, tags=tags) DataSourceMixin.__init__(self, is_data=is_data) LabelMixin.__init__(self, label=label, label_short=label_short) # instance members self._campaign = None self._info = {} # set initial values if campaign is not None: self.campaign = campaign if info is not None: self.info = info if kwargs and Shift.NOMINAL not in self.info: self.info = {Shift.NOMINAL: kwargs} # set initial processes if processes is not None: self.processes.extend(processes)
def __init__(self, name, id=UniqueObject.AUTO_ID, channel=None, categories=None, label=None, label_short=None, selection=None, selection_mode=None, tags=None, aux=None, context=None): UniqueObject.__init__(self, name, id, context=context) CopyMixin.__init__(self) AuxDataMixin.__init__(self, aux=aux) TagMixin.__init__(self, tags=tags) SelectionMixin.__init__(self, selection=selection, selection_mode=selection_mode) LabelMixin.__init__(self, label=label, label_short=label_short) # register empty attributes self._channel = None # set initial values if channel is not None: self.channel = channel # set initial child categories if categories is not None: self.extend_categories(categories)
def __init__(self, name, id, type=None, label=None, label_short=None, tags=None, aux=None, context=None): UniqueObject.__init__(self, name, id, context=context) CopyMixin.__init__(self) AuxDataMixin.__init__(self, aux=aux) TagMixin.__init__(self, tags=tags) LabelMixin.__init__(self, label=label, label_short=label_short) # register empty attributes self._source = None self._direction = None self._type = self.RATE_SHAPE # set initial values self._source, self._direction = self.split_name(self.name) if type is not None: self.type = type
def __init__(self, name, id, categories=None, label=None, label_short=None, tags=None, aux=None, context=None): UniqueObject.__init__(self, name, id, context=context) CopyMixin.__init__(self) AuxDataMixin.__init__(self, aux=aux) TagMixin.__init__(self, tags=tags) LabelMixin.__init__(self, label=label, label_short=label_short) # set initial categories if categories is not None: self.extend_categories(categories)