def output_def(self, name): tool_as_dict = self.metadata_params["tool"] output_defs = tool_as_dict["outputs"] if name not in output_defs: return None output_def_dict = output_defs[name] output_def = ToolOutput.from_dict(name, output_def_dict) return output_def
def quick_output(format, format_source=None, change_format_xml=None): test_output = ToolOutput("test_output") test_output.format = format test_output.format_source = format_source if change_format_xml: test_output.change_format = XML(change_format_xml) else: test_output.change_format = None return test_output
def outputs(self): return dict(output1=ToolOutput("output1"), )