def __init__(self, workflow, **kwargs): super(EnsembleModelWorkflow, self).__init__(workflow, **kwargs) self.histogram = AutoHistogramPlotter(self) self.histogram.input = self.ensemble.fitnesses self.histogram.link_from(self.ensemble) self.repeater.unlink_from(self.ensemble) self.repeater.link_from(self.histogram)
class EnsembleModelWorkflow(EnsembleWorkflowBase): KWATTRS = set(EnsembleModelManager.KWATTRS) MANAGER_UNIT = EnsembleModelManager def __init__(self, workflow, **kwargs): super(EnsembleModelWorkflow, self).__init__(workflow, **kwargs) self.histogram = AutoHistogramPlotter(self) self.histogram.input = self.ensemble.fitnesses self.histogram.link_from(self.ensemble) self.repeater.unlink_from(self.ensemble) self.repeater.link_from(self.histogram)