Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ZanSara committed Oct 20, 2023
1 parent 2e52607 commit 8784a28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion canals/pipeline/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
PipelineValidationError,
)
from canals.pipeline.draw import _draw, _convert_for_debug, RenderingEngines
from canals.pipeline.validation import _validate_pipeline_input, _find_pipeline_inputs
from canals.pipeline.validation import validate_pipeline_input, _find_pipeline_inputs
from canals.pipeline.connections import parse_connection, _find_unambiguous_connection
from canals.type_utils import _type_name
from canals.serialization import component_to_dict, component_from_dict
Expand Down
3 changes: 2 additions & 1 deletion canals/pipeline/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@
import networkx

from canals.errors import PipelineValidationError
from canals.component.sockets import InputSocket
from canals.pipeline.descriptions import _find_pipeline_inputs, _describe_pipeline_inputs_as_string


logger = logging.getLogger(__name__)


def _validate_pipeline_input(graph: networkx.MultiDiGraph, input_values: Dict[str, Any]) -> Dict[str, Any]:
def validate_pipeline_input(graph: networkx.MultiDiGraph, input_values: Dict[str, Any]) -> Dict[str, Any]:
"""
Make sure the pipeline is properly built and that the input received makes sense.
Returns the input values, validated and updated at need.
Expand Down

0 comments on commit 8784a28

Please sign in to comment.