def execute(self): """ Runs with various box parameter values. """ for width in range(1, 2): for height in range(1, 3): for depth in range(1, 4): self._logger.debug("w,h,d %s, %s, %s", width, height, depth) self.set_parameters((width, height, depth)) self.workflow.run() volume, area = self.eval_objectives() self._logger.debug(" v,a %s, %s", volume, area) case = Case() case.inputs = [("width", None, width), ("height", None, height), ("depth", None, depth)] case.outputs = [("volume", None, volume), ("area", None, area), ("pid", None, self.parent.box.pid)] # Just to show access to remote from driver. for recorder in self.recorders: recorder.record(case)
def execute(self): """ Runs with various box parameter values. """ for width in range(1, 2): for height in range(1, 3): for depth in range(1, 4): self._logger.debug('w,h,d %s, %s, %s', width, height, depth) self.set_parameters((width, height, depth)) self.workflow.run() volume, area = self.eval_objectives() self._logger.debug(' v,a %s, %s', volume, area) case = Case() case.inputs = [('width', None, width), ('height', None, height), ('depth', None, depth)] case.outputs = [('volume', None, volume), ('area', None, area), ('pid', None, self.parent.box.pid)] # Just to show access to remote from driver. self.recorder.record(case)