Commit d55c5f77 authored by Penom Nom's avatar Penom Nom
Browse files

Add stderr file.

parent e4bc0f36
......@@ -21,7 +21,7 @@ from weaver.abstraction import Map
from weaver.function import PythonFunction
from jflow.component import Component
from jflow.iotypes import InputFileList, OutputFileList, Formats
from jflow.iotypes import InputFileList, OutputFileList, OutputFile, Formats
def trim(input_file, output_file, start, end):
......@@ -71,9 +71,10 @@ class Trimmer (Component):
"""
self.input_files = InputFileList( input_files )
self.output_files = OutputFileList( self.get_outputs('{basename}', self.input_files) )
self.stderr = OutputFile( os.path.join(self.output_directory, 'trimmer.stderr') )
self.start = start
self.end = end
def process(self):
trimmer = PythonFunction( trim, cmd_format="{EXE} {IN} {OUT} " + str(self.start) + " " + str(self.end))
trimmer = Map(trimmer, inputs=self.input_files, outputs=self.output_files)
\ No newline at end of file
trimmer = PythonFunction( trim, cmd_format="{EXE} {IN} {OUT} " + str(self.start) + " " + str(self.end) + " 2>> " + self.stderr )
trimmer = Map( trimmer, inputs=self.input_files, outputs=self.output_files )
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment