checks.py¶
Set of utilities for detecting and reporting connection errors.
-
openmdao.core.checks.
check_connections
(connections, params_dict, unknowns_dict, to_prom_name)[source]¶ Checks the specified connections to make sure they are valid in OpenMDAO.
Args: params_dict : dict
A dictionary mapping absolute var name to its metadata for every param in the model.
unknowns_dict : dict
A dictionary mapping absolute var name to its metadata for every unknown in the model.
to_prom_name : dict
A dictionary mapping absolute var name to promoted var name.
Raises: TypeError, or ValueError
Any invalidity in the connection raises an error.