def input_names_none_or_unique(
            cls,
            ios: List[ConnectorFrontendDto]) -> List[ConnectorFrontendDto]:
        ios_with_name = [io for io in ios if io.name is not None]

        names_unique(cls, ios_with_name)

        return ios
Exemple #2
0
    def io_names_none_or_unique(
        cls, ios: List[WorkflowIoFrontendDto]
    ) -> List[WorkflowIoFrontendDto]:
        ios_with_name = [io for io in ios if not (io.name is None or io.name == "")]

        names_unique(cls, ios_with_name)

        return ios
Exemple #3
0
    def connector_names_empty_or_unique(
        cls, io_connectors: List[IOConnector]
    ) -> List[IOConnector]:

        io_connectors_with_nonempty_name = [
            io_connector
            for io_connector in io_connectors
            if not (io_connector.name is None or io_connector.name == "")
        ]

        names_unique(cls, io_connectors_with_nonempty_name)

        return io_connectors
Exemple #4
0
    def io_names_unique(cls, ios: List[IO]) -> List[IO]:
        ios_with_name = [io for io in ios if io.name is not None]

        names_unique(cls, ios_with_name)

        return ios
 def output_names_unique(
         cls, outputs: List[ComponentOutput]) -> List[ComponentOutput]:
     return names_unique(cls, outputs)
 def input_names_unique(
         cls, inputs: List[ComponentInput]) -> List[ComponentInput]:
     return names_unique(cls, inputs)