Skip to content

Commit

Permalink
fix pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
valer1435 committed Aug 7, 2023
1 parent d3da621 commit fab0a20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fedot/core/pipelines/random_pipeline_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@ def graph_growth(graph: OptGraph,
secondary_node = node_factory.get_node(is_primary=False)
graph.add_node(secondary_node)
node_parent.nodes_from.append(secondary_node)
graph_growth(graph, secondary_node, node_factory, requirements, max_depth)
graph_growth(graph, secondary_node, node_factory, requirements, max_depth)
2 changes: 1 addition & 1 deletion fedot/core/pipelines/verification_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


def has_correct_operations_for_task(pipeline: Pipeline, task_type: Optional[TaskTypesEnum] = None):
if task_type and not task_type in pipeline.root_node.operation.acceptable_task_types:
if task_type and task_type not in pipeline.root_node.operation.acceptable_task_types:
raise ValueError(f'{ERROR_PREFIX} Pipeline has incorrect operations positions')
return True

Expand Down

0 comments on commit fab0a20

Please sign in to comment.