jigneshvasoya / ruffus

Automatically exported from code.google.com/p/ruffus
MIT License
0 stars 0 forks source link

@split with empty input files crashes Ruffus #30

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Error message as follows:

File 
"/net/cpp-group/Leo/inprogress/oss_projects/ruffus/installation/ruffus/task.py",
 line 1013, in get_output_files
        self.output_filenames = reduce(lambda x,y: x + y, self.output_filenames)
    TypeError: reduce() of empty sequence with no initial value

Original issue reported on code.google.com by bunbu...@gmail.com on 21 Jul 2010 at 2:13

GoogleCodeExporter commented 9 years ago
The code in task.py is specific for @split and assumes that there are some 
rather than no jobs at all...

Fixed in v.2.2

Original comment by bunbu...@gmail.com on 21 Jul 2010 at 2:14