Skip to content
Snippets Groups Projects
Commit 8b031ce9 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

remove extra paranthesis

parent 7c2bc523
Branches
No related tags found
1 merge request!102Add sequential and parallel processors, pre-processors, and extractors
Pipeline #
...@@ -8,7 +8,7 @@ class MultipleExtractor(Extractor): ...@@ -8,7 +8,7 @@ class MultipleExtractor(Extractor):
not meant to be used directly.""" not meant to be used directly."""
def get_attributes(self, processors): def get_attributes(self, processors):
requires_training = any((p.requires_training for p in processors)) requires_training = any(p.requires_training for p in processors)
split_training_data_by_client = any(p.split_training_data_by_client for p split_training_data_by_client = any(p.split_training_data_by_client for p
in processors) in processors)
min_extractor_file_size = min(p.min_extractor_file_size for p in min_extractor_file_size = min(p.min_extractor_file_size for p in
......
...@@ -26,8 +26,8 @@ class ParallelPreprocessor(ParallelProcessor, Preprocessor): ...@@ -26,8 +26,8 @@ class ParallelPreprocessor(ParallelProcessor, Preprocessor):
__doc__ = ParallelProcessor.__doc__ __doc__ = ParallelProcessor.__doc__
def __init__(self, processors, **kwargs): def __init__(self, processors, **kwargs):
min_preprocessed_file_size = min((p.min_preprocessed_file_size for p in min_preprocessed_file_size = min(p.min_preprocessed_file_size for p in
processors)) processors)
ParallelProcessor.__init__(self, processors) ParallelProcessor.__init__(self, processors)
Preprocessor.__init__( Preprocessor.__init__(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment